File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public struct DisposeBag: ~Copyable {
3838 /// Adds `disposable` to be disposed when dispose bag is being deinited.
3939 ///
4040 /// - parameter disposable: Disposable to add.
41- public /* mutating*/ func insert( _ disposable: Disposable ) {
41+ public mutating func insert( _ disposable: Disposable ) {
4242 implementation. _insert ( disposable) ? . dispose ( )
4343 }
4444}
@@ -116,17 +116,17 @@ extension DisposeBag {
116116 }
117117
118118 /// Convenience function allows a list of disposables to be gathered for disposal.
119- public func insert( _ disposables: Disposable ... ) {
119+ public mutating func insert( _ disposables: Disposable ... ) {
120120 self . insert ( disposables)
121121 }
122122
123123 /// Convenience function allows a list of disposables to be gathered for disposal.
124- public func insert( @DisposableBuilder builder: ( ) -> [ Disposable ] ) {
124+ public mutating func insert( @DisposableBuilder builder: ( ) -> [ Disposable ] ) {
125125 self . insert ( builder ( ) )
126126 }
127127
128128 /// Convenience function allows an array of disposables to be gathered for disposal.
129- public func insert( _ disposables: [ Disposable ] ) {
129+ public mutating func insert( _ disposables: [ Disposable ] ) {
130130 self . implementation. lock. performLocked {
131131 if self . implementation. isDisposed {
132132 disposables. forEach { $0. dispose ( ) }
You can’t perform that action at this time.
0 commit comments