defaultLoop - multiple declarations
Function defaultLoop
Returns the event loop used by default. If an event loop wasn't set with defaultLoop before, defaultLoop will try to choose an event loop supported on the system.
Returns
The default event loop.
Function defaultLoop
Sets the default event loop.
This property makes it possible to implement your own backends or event loops, for example, if the system is not supported or if you want to extend the supported implementation. Just extend Loop and pass your implementation to this property.
Parameters
Name | Description |
---|---|
loop | The event loop. |