Protected
_chipProtected
_eventProtected
Optional
_inputProtected
_lastProtected
_listenersProtected
Optional
_outputProtected
Optional
_reloadProtected
_stateOptional
that: ThatOptional
thatProtected
_makeBy default, a chip be automatically reloaded
Protected
_onProtected
_onProtected
_onProtected
_onProtected
_onProtected
_subscribeStart listening to events of a certain type emitted by an object.
The callback will be called with the chip as this
.
Works by default for both NodeJS- and DOM-style events.
If you are interfacing with a different event system, you can provide a
subscriptionHandler
that knows how to handle it.
Rest
...args: EventNames[EventName]Optional
subscriptionHandler: SubscriptionHandlerProtected
_subscribeListen to a single event emitted by an object, then stop.
The callback will be called with the chip as this
.
Works by default for both NodeJS- and DOM-style events.
If you are interfacing with a different event system, you can provide a
subscriptionHandler
that knows how to handle them.
Rest
...args: EventNames[EventName]Optional
subscriptionHandler: SubscriptionHandlerProtected
_unsubscribeUnsubscribe to a set of events.
By default, unsubscribes to everything. If emitter
, event
, or cb
is provided,
unsubscribe only to those.
Optional
emitter: NodeEventSourceOptional
event: stringOptional
cb: ((...args) => void)Rest
...args: unknown[]Activate the chip, with a provided context and input signal. Should only be called from an inactive state
Optional
inputSignal: Signal<string>Optional
reloadMemento: ReloadMementoRest
...params: BaseChipBaseEvents[Name]Optional
name: NameOptional
run: ListenerFunction<BaseChipBaseEvents, Name>Terminate the chip. Should only be called from an active or paused state
Update the chip, provided a new time
Generated using TypeDoc
An chip that calls a provided function just once (in activate), and immediately terminates. If the function returns a signal, will terminate with that signal. Optionally takes a
That
parameter, which is set as this during the call.