I get some callbacks from some functions. I want to send a signal there, then receive the signal via the eventsheet and then continue to do something. But I can't seem to find a interface to do it.
window.api.sayHello(data => {
// do something
});
Update:
A new signal() method, as well as waitForSignal() for allowing JavaScript code to also wait for a signal, is now available in r401.
Now we can do
window.api.sayHello(data => {
runtime.signal("")
});