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.
Initializes the cancellable object with the given cancel-time closure.
init(_ cancel: @escaping () -> Void)A closure that the cancel() method executes.