AfterEvent

class AfterEvent(val event: Observable<*>) : RetryPolicy

AfterEvent retries the request when the given event emits.

The event is subscribed to when the retry is decided, and the request is retried on its first emission; the emitted value is ignored. A source that replays a current value on subscription, such as an ObservableState, retries at once unless filtered.

An event that completes without emitting, or never emits, leaves the request pending until it is disposed.

Parameters

event

The Observable whose first emission triggers the retry.

Constructors

Link copied to clipboard
constructor(event: Observable<*>)

Properties

Link copied to clipboard