Namespace: ResultProvider
ResultProvider
An object offering the alternative of a
ResultProvider#result
function or a ResultProvider#stream function for
receiving the results
Methods
-
-
result(success, failure) → {object}
-
Accepts success and/or failure callbacks and returns a Promises object for chaining actions with then() functions.
Parameters:
Name Type Argument Description success
function <optional>
a callback invoked when the request succeeds failure
function <optional>
a callback invoked when the request fails - Since:
-
- 1.0
Returns:
a Promises object- Type
- object
-
-
stream() → {object}
-
Returns a ReadableStream object in object mode for receiving results as complete objects.
- Since:
-
- 1.0
Returns:
a ReadableStream object- Type
- object