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.

Loop defaultLoop() @property @nogc;

Returns

The default event loop.

Function defaultLoop

Sets the default event loop.

void defaultLoop (
  Loop loop
) @property @nogc;

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

NameDescription
loop The event loop.