Future Class
A Future is a Promise which resolves to a StructuredDocument
while providing the ability to abort
the underlying request,
getStream
the response before the outer promise resolves;
Item Index
Methods
Methods
abort
(
Void
public
-
[reason]
Cancel this request by firing the AbortController's signal.
Parameters:
-
[reason]
String optionaloptional reason for aborting the request
Returns:
Void:
getStream
()
PromiseGet the response stream, if any, once made available.
Returns:
Promise :
onFinalize
(
public
-
cb
Run a callback when this request completes. Use sparingly, mostly useful for instrumentation and infrastructure.
Parameters:
-
cb
Objectthe callback to run
Returns:
void