Promise
constructor
ref_
count
name
get_
future
set_
exception
set_
value
new
GJS API Reference
Gpseq-1.0
Gpseq
Promise
Class Promise
Hierarchy
Promise
Index
Constructors
constructor
Properties
ref_
count
name
Methods
get_
future
set_
exception
set_
value
new
Constructors
constructor
new
Promise
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
)
:
Gpseq
.
Promise
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
Returns
Gpseq
.
Promise
Properties
ref_
count
ref_
count
:
number
Static
name
name
:
string
Methods
get_
future
get_
future
(
)
:
Gpseq
.
Future
Returns
Gpseq
.
Future
set_
exception
set_
exception
(
exception
:
GLib
.
Error
)
:
void
Parameters
exception:
GLib
.
Error
Returns
void
set_
value
set_
value
(
value
?:
object
)
:
void
Parameters
Optional
value:
object
Returns
void
Static
new
new
(
g_type
:
GType
<
unknown
>
, g_dup_func
:
BoxedCopyFunc
, g_destroy_func
:
GLib
.
DestroyNotify
)
:
Gpseq
.
Promise
Parameters
g_type:
GType
<
unknown
>
g_dup_func:
BoxedCopyFunc
g_destroy_func:
GLib
.
DestroyNotify
Returns
Gpseq
.
Promise
Promise
constructor
ref_
count
name
get_
future
set_
exception
set_
value
new
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHcHNlcV8xXzAuR3BzZXEuUHJvbWlzZS5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MiLCJocmVmIjoiR3B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