vibe.d beta banner
get vibe.d
0.7.30

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

Fields

NameTypeDescription
m_resultFreeListRef!(shared(T))
m_taskTask

Properties

Properties

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

Methods

Methods

NameDescription
getResultReturns the computed value.
init
Authors

Sönke Ludwig

Copyright

© 2013-2016 RejectedSoftware e.K.

License

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