Class Loop
Event loop.
Constructors
Name | Description |
this
()
|
Initializes the loop.
|
Fields
Name | Type | Description |
blockTime_
|
core.time.Duration | Maximal block time.
|
pendings
|
DList!(tanya.async.watcher.Watcher) | Pending watchers.
|
Properties
Name | Type | Description |
blockTime [set]
|
const(core.time.Duration) | Sets the blocking time for IO watchers.
|
blockTime [get]
|
inout(core.time.Duration) | |
maxEvents [get]
|
uint | |
Methods
Name | Description |
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.
|