dorm ~master (2022-11-24T09:54:00.4135699)
Dub
Repo
FreeableAsyncResult
dorm
lib
util
Undocumented in source.
struct
FreeableAsyncResult (
T
) {
Awaiter
awaiter
;
static if
(
is(T : void delegate(scope U value), U)
)
T
forward_callback
;
static if
(!(
is(T : void delegate(scope U value), U)
))
static if
(
!is(T == void)
)
T
raw_result
;
Exception
error
;
this
();
this
(Awaiter awaiter);
static
FreeableAsyncResult
make
();
alias
Callback
=
void
function
(
void
*
data
,
scope
RormError
error
)
nothrow
;
alias
Callback
=
void
function
(
void
*
data
,
scope
V
result
,
scope
RormError
error
)
nothrow
;
alias
Callback
=
void
function
(
void
*
data
,
T
result
,
scope
RormError
error
)
nothrow
;
Tuple
!(
Callback
,
void
*)
callback
();
void
waitAndThrow
();
auto
result
();
void
reset
();
}
Constructors
this
this
()
Undocumented in source.
this
this
(Awaiter awaiter)
Undocumented in source.
Members
Aliases
Callback
alias
Callback
=
void
function
(
void
*
data
,
scope
RormError
error
)
nothrow
Undocumented in source.
Callback
alias
Callback
=
void
function
(
void
*
data
,
scope
V
result
,
scope
RormError
error
)
nothrow
Undocumented in source.
Callback
alias
Callback
=
void
function
(
void
*
data
,
T
result
,
scope
RormError
error
)
nothrow
Undocumented in source.
Functions
callback
Tuple
!(
Callback
,
void
*)
callback
()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void
reset
()
Undocumented in source. Be warned that the author may not have intended to support it.
result
auto
result
()
Undocumented in source. Be warned that the author may not have intended to support it.
waitAndThrow
void
waitAndThrow
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
make
FreeableAsyncResult
make
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
awaiter
Awaiter
awaiter
;
Undocumented in source.
error
Exception
error
;
Undocumented in source.
forward_callback
T
forward_callback
;
Undocumented in source.
raw_result
T
raw_result
;
Undocumented in source.
Meta
Source
See Implementation
dorm
lib
util
functions
sync_call
structs
Awaiter
FreeableAsyncResult
templates
ffiInto