#include <Future.hpp>
Definition at line 27 of file Future.hpp.
◆ Future()
◆ deleteSelfViaVM()
void Ark::internal::Future::deleteSelfViaVM |
( |
| ) |
|
|
private |
◆ resolve()
Value Ark::internal::Future::resolve |
( |
| ) |
|
Await the future, blocking the thread it is run on.
- Returns
- Value Nil if the future is invalid (has already been awaited), otherwise the value
Definition at line 37 of file Future.cpp.
References m_value, and Ark::Nil.
◆ ControlFunctions
Initial value:= {
.ostream_func = [](std::ostream& os, const UserType& user) -> std::ostream& {
os << "Future@" << user.data();
return os;
},
.deleter = [](void* data) {
}
}
Definition at line 44 of file Future.hpp.
◆ m_value
std::future<Value> Ark::internal::Future::m_value |
|
private |
◆ m_vm
VM* Ark::internal::Future::m_vm |
|
private |
The documentation for this class was generated from the following files:
- /Users/fola/Documents/ArkScript/Ark/include/Ark/VM/Future.hpp
- /Users/fola/Documents/ArkScript/Ark/src/arkreactor/VM/Future.cpp