diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-07-17 23:13:36 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-07-18 00:29:44 -0700 |
commit | 4c6f778cfd4ce9e28f12db10a922c26785e96b94 (patch) | |
tree | 715a44d590134d9bfee5d34425ad53ec7f0f1a10 /src/objective-c/RxLibrary/GRXConcurrentWriteable.m | |
parent | 35f003b24eb26c1e51faf2ba8df4ab5784d17133 (diff) |
ConcurrentWriteable: NSData *message -> id value
Diffstat (limited to 'src/objective-c/RxLibrary/GRXConcurrentWriteable.m')
-rw-r--r-- | src/objective-c/RxLibrary/GRXConcurrentWriteable.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/RxLibrary/GRXConcurrentWriteable.m b/src/objective-c/RxLibrary/GRXConcurrentWriteable.m index b71098d73b..735df3137b 100644 --- a/src/objective-c/RxLibrary/GRXConcurrentWriteable.m +++ b/src/objective-c/RxLibrary/GRXConcurrentWriteable.m @@ -61,7 +61,7 @@ return self; } -- (void)enqueueMessage:(NSData *)message completionHandler:(void (^)())handler { +- (void)enqueueValue:(id)value completionHandler:(void (^)())handler { dispatch_async(_writeableQueue, ^{ // We're racing a possible cancellation performed by another thread. To turn // all already-enqueued messages into noops, cancellation nillifies the @@ -69,7 +69,7 @@ // the race. id<GRXWriteable> writeable = self.writeable; if (writeable) { - [writeable writeValue:message]; + [writeable writeValue:value]; handler(); } }); |