Skip to main content
Many rb calls return a handle: an object that controls what the call started, such as a task, a timer, a macro, a bind or a server. Keep the handle when the script needs to stop, pause or check on that work later, and call its methods with :. Each handle except EventHandle, which rb.on returns with stop alone, also answers to its v1 names. Needs: a coroutine for a MacroHandle’s wait, so call it inside rb.run or rb.async (see Where code runs). is_running is false once a one-shot timer fired or a task ended, and while a timer is paused. A disabled bind still intercepts its key. wait returns when the macro stops playing.