vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Struct Task

Represents a single task as started using vibe.core.runTask.

struct Task ;

Note that the Task type is considered weakly isolated and thus can be passed between threads using vibe.core.concurrency.send or by passing it as a parameter to vibe.core.core.runWorkerTask.

Constructors

NameDescription
this (other)

Properties

NameTypeDescription
fiber[get] inout(TaskFiber)
messageQueue[get] inout(MessageQueue)Reserved for internal use!
running[get] boolDetermines if the task is still running.
taskCounter[get] ulong
thread[get] inout(core.thread.Thread)
tid[get] std.concurrency.Tid
tidInfo[get] std.concurrency.ThreadInfo

Methods

NameDescription
getThis () Returns the Task instance belonging to the calling task.
interrupt ()
join ()
opCast ()
opEquals (other)
opEquals (other)
terminate ()
toString ()
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.