newAnycast

fun newAnycast(scope: CoroutineScope, policy: ErrorRelayPolicy = ErrorRelayPolicy.None): ErrorRelay

Creates an ErrorRelay that relays error information to one of the destinations.

NOTE: Only the latest error information is retained while there are no destinations.

Parameters

scope

CoroutineScope for the relay.

policy

The relay policy for error information.