vibe.d beta banner
get vibe.d
0.10.1

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(core.thread.fiber.Fiber)
running[get] boolDetermines if the task is still running or scheduled to be run.
taskCounter[get] ulong
thread[get] inout(core.thread.osthread.Thread)
tid[get] std.concurrency.TidGets the Tid associated with this task for use with std.concurrency.

Methods

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

Sönke Ludwig

Copyright

© 2012-2020 Sönke Ludwig

License

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