| Function navigation | Description |
|---|---|
RealSignal.Connect | Connects a callback to a RealSignal and returns a RealSignalConnection. The callback receives the arguments passed to Fire. |
RealSignal.Fire | Fires the RealSignal with zero or more values. Connected callbacks receive those values, once connections are disconnected before invocation, and waiting threads are resumed with the same values. The method returns no values. |
RealSignal.Once | Connects a callback that is disconnected before its first callback invocation. The callback receives the arguments passed to Fire. |
RealSignal.Wait | Yields the current thread until the RealSignal is fired, then resumes with the arguments passed to Fire. It errors when called from a context that cannot yield. |
RealSignalConnection.Disconnect | Disconnects a RealSignalConnection returned by Connect or Once. The method returns no values. |
Signal.new | Creates a new RealSignal object. The returned signal exposes Connect, Once, Wait, and Fire methods. |
RealSignal
RealSignal
Standalone signal objects with callbacks, one-shot handlers, and waiters.
Standalone signal objects with callbacks, one-shot handlers, and waiters.