-Exec* Exec::wait()
-{
- return this->wait_for(-1);
-}
-
-Exec* Exec::wait_for(double timeout)
-{
- if (state_ == State::INITED)
- vetoable_start();
-
- kernel::actor::ActorImpl* issuer = kernel::actor::ActorImpl::self();
- kernel::actor::simcall_blocking([this, issuer, timeout] { this->get_impl()->wait_for(issuer, timeout); });
- state_ = State::FINISHED;
- on_completion(*this);
- this->release_dependencies();
- return this;
-}
-