CancelSource

scalus.cardano.infra.CancelSource
See theCancelSource companion object
trait CancelSource

Controlling side of a cancellation. Only the owner of the source has the capability to call cancel; consumers receive the token.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def cancel(cause: Throwable): Unit

Trigger cancellation with a stored cause. Idempotent — only the first call has effect. Listeners registered on the token run synchronously; subsequent registrations on the token fire synchronously at registration time.

Trigger cancellation with a stored cause. Idempotent — only the first call has effect. Listeners registered on the token run synchronously; subsequent registrations on the token fire synchronously at registration time.

Attributes

Concrete methods

final def cancel(): Unit

Convenience: cancel with a default CancelledException.

Convenience: cancel with a default CancelledException.

Attributes