Facility Control

 View Only
  • 1.  Canceling an asyncexec

    Posted 04-17-2019 13:19

    So let's say I made an call using ogscript.asyncAxec.

    [code]

    ogscript.asyncExec(myFunction, 28800000); //runs 8 hours from now

    [/code]

     

    But now I want to cancel that asyncExec because conditions have changed and I no longer want that function to execute in 8 hours. Is there a way to cancel it?



  • 2.  RE: Canceling an asyncexec

    Posted 04-17-2019 19:10

    Hi Joseph.

    If you look at this recent post: https://support.rossvideo.com/hc/en-us/community/posts/360043246572-async-exec-limited-to-one-async-

    I go into a more advanced form of asyncExec thread that is available. This object has a 'close' function that can shut it down and cancel all queued tasks inside of it.

     

    Cheers.

    James

     


    #DashBoard


  • 3.  RE: Canceling an asyncexec

    Posted 04-18-2019 18:46

    Thank you! I wasn't aware of the close function. That's great and should do the job for me. Thanks!


    #DashBoard