init(_:)

Initializes the subscription with the given cancel closure.

SharedContinuations.swift:116
init(_ cancel: @escaping () -> Void)

Parameters

cancel

A closure that the cancel() method executes.