Function Future.setResult

Mark the future done and set its result.

If the future is already done when this method is called, throws InvalidStateError.

Prototype

void setResult(
  T result
);

Authors

Dragos Carp

Copyright

© 2015-2016 Dragos Carp

License

Boost Software License - Version 1.0