Callback type which supports two channels of errors.
Callback type which supports two channels of errors.
- Companion
- object
Value members
Abstract methods
Signals an error.
Signals an error.
Can be called at most once by contract. Not necessarily thread-safe, depends on implementation.
Signals a successful value.
Signals a successful value.
Can be called at most once by contract. Not necessarily thread-safe, depends on implementation.
Concrete methods
Signals a value via Scala's Either
where
Signals a value via Scala's Either
where
Left
is a typed errorRight
is a successful value
Can be called at most once by contract. Not necessarily thread-safe, depends on implementation.
Signals a value via Scala's Try
of Either
where
Signals a value via Scala's Try
of Either
where
Left
is a typed errorRight
is a successful valueFailure
is a terminal error (a defect))
Can be called at most once by contract. Not necessarily thread-safe, depends on implementation.
Signals a value via Scala's Try
.
Signals a value via Scala's Try
.
Can be called at most once by contract. Not necessarily thread-safe, depends on implementation.
Return a new callback that will apply the supplied function before passing the result into this callback.
Return a new callback that will apply the supplied function before passing the result into this callback.
Attempts to call BiCallback.apply.
Attempts to call BiCallback.apply.
In case the underlying callback
implementation protects against protocol violations, then
this method should return false
in case the final result
was already signaled once via onSuccess,
onError or onTermination.
The default implementation relies on catching
[[monix.execution.exceptions.CallbackCalledMultipleTimesException CallbackCalledMultipleTimesException]]
in case of violations, which is what thread-safe implementations
of `onSuccess` or `onError` are usually throwing.
WARNING: this method is only provided as a
convenience. The presence of this method does not
guarantee that the underlying callback is thread-safe or
that it protects against protocol violations.
Attempts to call BiCallback.apply.
Attempts to call BiCallback.apply.
In case the underlying callback
implementation protects against protocol violations, then
this method should return false
in case the final result
was already signaled once via onSuccess,
onError or onTermination.
The default implementation relies on catching
[[monix.execution.exceptions.CallbackCalledMultipleTimesException CallbackCalledMultipleTimesException]]
in case of violations, which is what thread-safe implementations
of `onSuccess` or `onError` are usually throwing.
WARNING: this method is only provided as a
convenience. The presence of this method does not
guarantee that the underlying callback is thread-safe or
that it protects against protocol violations.
Attempts to call BiCallback.onError.
Attempts to call BiCallback.onError.
In case the underlying callback
implementation protects against protocol violations, then
this method should return false
in case the final result
was already signaled once via onSuccess,
onError or onTermination.
The default implementation relies on catching
[[monix.execution.exceptions.CallbackCalledMultipleTimesException CallbackCalledMultipleTimesException]]
in case of violations, which is what thread-safe implementations
of `onSuccess` or `onError` are usually throwing.
WARNING: this method is only provided as a
convenience. The presence of this method does not
guarantee that the underlying callback is thread-safe or
that it protects against protocol violations.
Attempts to call BiCallback.onSuccess.
Attempts to call BiCallback.onSuccess.
In case the underlying callback
implementation protects against protocol violations, then
this method should return false
in case the final result
was already signaled once via onSuccess,
onError or onTermination.
The default implementation relies on catching
[[monix.execution.exceptions.CallbackCalledMultipleTimesException CallbackCalledMultipleTimesException]]
in case of violations, which is what thread-safe implementations
of `onSuccess` or `onError` are usually throwing.
WARNING: this method is only provided as a
convenience. The presence of this method does not
guarantee that the underlying callback is thread-safe or
that it protects against protocol violations.
Attempts to call BiCallback.onTermination.
Attempts to call BiCallback.onTermination.
In case the underlying callback
implementation protects against protocol violations, then
this method should return false
in case the final result
was already signaled once via onSuccess,
onError or onTermination.
The default implementation relies on catching
[[monix.execution.exceptions.CallbackCalledMultipleTimesException CallbackCalledMultipleTimesException]]
in case of violations, which is what thread-safe implementations
of `onSuccess` or `onError` are usually throwing.
WARNING: this method is only provided as a
convenience. The presence of this method does not
guarantee that the underlying callback is thread-safe or
that it protects against protocol violations.