Class: oSignal

$. oSignal

A Qt like custom signal that can be defined, connected and emitted. As this signal is not actually threaded, the connected callbacks will be executed directly when the signal is emited, and the rest of the code will execute after.

new $.oSignal()

openHarmony/openHarmony_threading.js, line 604
The constructor for $.oSignal.

Methods

connect(context, slot)

openHarmony/openHarmony_threading.js, line 625
Register the calling object and the slot.
Name Type Description
context object
slot function

disconnect(slot)

openHarmony/openHarmony_threading.js, line 639
Remove a connection registered with this Signal.
Name Type Description
slot function optional the function to disconnect from the signal. If not specified, all connexions will be removed.

emit()

openHarmony/openHarmony_threading.js, line 656
Call the slot function using the provided context and and any arguments.