vibe.d beta banner
get vibe.d
0.10.0

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

Struct Future

Represents a values that will be computed asynchronously.

struct Future(T) ;

This type uses alias this to enable transparent access to the result value.

Fields

NameTypeDescription
m_result Future.ResultRef
m_task Task

Properties

NameTypeDescription
ready[get] boolChecks if the values was fully computed.
task[get] TaskReturn the associated task.

Methods

NameDescription
getResult () Returns the computed value.
init ()

Aliases

NameDescription
ResultRef
Authors

Sönke Ludwig

Copyright

© 2013-2014 Sönke Ludwig

License

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