Skip to content

Commit 9766ef7

Browse files
authored
Prefer opaque type over existential (unnecessary overhead)
1 parent 143465c commit 9766ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MobiusCore/Source/Disposables/Task+Disposable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public extension Task {
2323
/// }
2424
/// .asDisposable
2525
/// }
26-
var asDisposable: any Disposable {
26+
var asDisposable: some Disposable {
2727
AnonymousDisposable { cancel() }
2828
}
2929
}

0 commit comments

Comments
 (0)