true
if there are no this Runner contains no listeners
Add a listener to the Runner
Runners do not need to have scope or functions passed to them. All that is required is to pass the listening object and ensure that it has contains a function that has the same name as the name provided to the Runner when it was created.
E.g. A listener passed to this Runner will require a 'complete' function.
import { Runner } from '@pixi/runner';
const complete = new Runner('complete');
The scope used will be the object itself.
The object that will be listening.
Check to see if the listener is already in the Runner
The listener that you would like to check.
Remove a single listener from the dispatch queue.
The listener that you would like to remove.
Generated using TypeDoc
A Runner is a highly performant and simple alternative to signals. Best used in situations where events are dispatched to many objects at high frequency (say every frame!)
Like a signal:
Or for handling calling the same function on many items:
Type safety:
Memberof
PIXI