Class Loop

Event loop.

class Loop ;

Constructors

NameDescription
this () Initializes the loop.

Fields

NameTypeDescription
blockTime_ core.time.DurationMaximal block time.
pendings DList!(tanya.async.watcher.Watcher)Pending watchers.

Properties

NameTypeDescription
blockTime[set] const(core.time.Duration)Sets the blocking time for IO watchers.
blockTime[get] inout(core.time.Duration)
maxEvents[get] uint

Methods

NameDescription
run () Starts the loop.
start (watcher) Start watching.
stop (watcher) Stop watching.
unloop () Break out of the loop.
poll () Does the actual polling.
reify (watcher, oldEvents, events) Should be called if the backend configuration changes.