We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b62dbb + 2e3effb commit 3f2daacCopy full SHA for 3f2daac
Sources/Disposable.swift
@@ -185,6 +185,7 @@ public final class CompositeDisposable: Disposable {
185
///
186
/// - returns: An instance of `DisposableHandle` that can be used to
187
/// opaquely remove the disposable later (if desired).
188
+ @discardableResult
189
public func add(_ action: @escaping () -> Void) -> DisposableHandle {
190
return add(ActionDisposable(action: action))
191
}
0 commit comments