Make result of subscribe() discardable

pull/1557/head
Hwee-Boon Yar 5 years ago
parent d8214636ee
commit 1e3f490b6d
  1. 2
      AlphaWallet/Foundation/Subscribable.swift

@ -34,7 +34,7 @@ open class Subscribable<T> {
_value = value
}
open func subscribe(_ subscribe: @escaping (T?) -> Void) -> SubscribableKey {
@discardableResult open func subscribe(_ subscribe: @escaping (T?) -> Void) -> SubscribableKey {
if let value = _value {
subscribe(value)
}

Loading…
Cancel
Save