Event loops.

See also:

Static methods

@:noExprstaticalive(this:Loop):Bool

Indicates whether the loop is monitoring any activity.

@:noExprstaticclose(this:Loop):Result<NoData>

Releases resources associated with an event loop.

@:noExprstaticconfigure<T>(this:Loop, option:LoopOption<T>, value:T):Result<NoData>

Sets the loop option.

@:noExprstaticdefaultLoop():Loop

Returns the default event loop.

@:noExprstaticinit():Result<Loop>

Allocates and initializes a new event loop.

@:noExprstaticlibraryShutdown():Void

Releases any state libuv is holding on to.

Normally there's no need to do this manually.

Warning! Only call Loop.libraryShutdown() once. Warning! Don’t call Loop.libraryShutdown() when there are still event loops or I/O requests active. Warning! Don’t call libuv functions after calling Loop.libraryShutdown().

@:noExprstaticnow(this:Loop):UInt64

Returns the cached loop timestamp.

@:noExprstaticrun(this:Loop, mode:RunMode):Bool

Runs an event loop.

@:noExprstaticstop(this:Loop):Void

Stops an event loop as soon as possible.

@:noExprstaticupdateTime(this:Loop):Void

Updates the cached loop timestamp.