EnterSideEffectSyscallCallback

Functions

Link copied to clipboard
Link copied to clipboard
open fun <T, R> mappingTo(mapper: (T) -> R, callback: SyscallCallback<R>): SyscallCallback<T>
Link copied to clipboard
open fun <T> of(onSuccess: Consumer<T>, onFailure: Consumer<Throwable>): SyscallCallback<T>
Link copied to clipboard
open fun ofVoid(onSuccess: Runnable, onFailure: Consumer<Throwable>): SyscallCallback<Void>
Link copied to clipboard
abstract fun onCancel(t: Throwable)
The internal state machine invokes this method when a syscall is interrupted due to a suspension, or a network error.
Link copied to clipboard
abstract fun onFailure(t: TerminalException)
This is user failure.
Link copied to clipboard
abstract fun onNotExecuted()
Link copied to clipboard
abstract fun onSuccess(@Nullable value: @Nullable T)