Gpseq.Promise – gpseq-1.0 Reference Manual
Promise
Object Hierarchy:
Gpseq.Promise
Gpseq.Promise
Gpseq.Promise
Description:
public
class
Promise
<
G
>
A promise allows to set a value or an exception with an associated future.
See also:
Future
Namespace:
Gpseq
Package:
gpseq-1.0
Content:
Properties:
public
Future
<
G
>
future
{
get
; }
The future of this promise.
Creation methods:
public
Promise
()
Methods:
public
void
set_exception
(
owned
Error
exception)
Sets the exception to the associated future.
public
void
set_value
(
owned
G
value)
Sets the value to the associated future.
2022 vala-language.org