Contents

init(_:)

Initializes the cancellable object with the given cancel-time closure.

Declaration

init(_ cancel: @escaping () -> Void)

Parameters

  • cancel:

    A closure that the cancel() method executes.

See Also

Creating a type-erased cancellable