A callback function receiving a value.
The output of an asynchronous operation.
An error occurring due to an HTTP request failing.
Represents an ongoing asynchronous operation.
The result of an operation: either Result.Ok or Result.Err.
A callback function receiving a Result value.
An error occurring during an operation.
Kotlin convenience method: invoke the callback if the result is an error.
Kotlin convenience method: return the value if Ok, otherwise invoke the callback with the error.
Returns a Future which has already resolved with an error.
Returns a Future which has already resolved successfully.
Convenience method to create and return a Promise.
Returns a new Future which times out after the specified duration.
Future