aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/RxLibrary
diff options
context:
space:
mode:
Diffstat (limited to 'src/objective-c/RxLibrary')
-rw-r--r--src/objective-c/RxLibrary/GRXBufferedPipe.m4
-rw-r--r--src/objective-c/RxLibrary/GRXConcurrentWriteable.h8
-rw-r--r--src/objective-c/RxLibrary/GRXConcurrentWriteable.m6
-rw-r--r--src/objective-c/RxLibrary/GRXForwardingWriter.m12
-rw-r--r--src/objective-c/RxLibrary/GRXImmediateSingleWriter.m4
5 files changed, 17 insertions, 17 deletions
diff --git a/src/objective-c/RxLibrary/GRXBufferedPipe.m b/src/objective-c/RxLibrary/GRXBufferedPipe.m
index d0064a5cfa..74e2f03da6 100644
--- a/src/objective-c/RxLibrary/GRXBufferedPipe.m
+++ b/src/objective-c/RxLibrary/GRXBufferedPipe.m
@@ -52,7 +52,7 @@
value = [value copy];
}
dispatch_async(_writeQueue, ^(void) {
- @synchronized (self) {
+ @synchronized(self) {
if (self->_state == GRXWriterStateFinished) {
return;
}
@@ -106,7 +106,7 @@
}
- (void)startWithWriteable:(id<GRXWriteable>)writeable {
- @synchronized (self) {
+ @synchronized(self) {
self.writeable = writeable;
_state = GRXWriterStateStarted;
}
diff --git a/src/objective-c/RxLibrary/GRXConcurrentWriteable.h b/src/objective-c/RxLibrary/GRXConcurrentWriteable.h
index 55468b3c07..5beca9d41e 100644
--- a/src/objective-c/RxLibrary/GRXConcurrentWriteable.h
+++ b/src/objective-c/RxLibrary/GRXConcurrentWriteable.h
@@ -23,10 +23,10 @@
/**
* This is a thread-safe wrapper over a GRXWriteable instance. It lets one enqueue calls to a
- * GRXWriteable instance for the thread user provided, guaranteeing that writesFinishedWithError: is the last
- * message sent to it (no matter what messages are sent to the wrapper, in what order, nor from
- * which thread). It also guarantees that, if cancelWithError: is called (e.g.
- * by the app cancelling the writes), no further messages are sent to the writeable except
+ * GRXWriteable instance for the thread user provided, guaranteeing that writesFinishedWithError: is
+ * the last message sent to it (no matter what messages are sent to the wrapper, in what order, nor
+ * from which thread). It also guarantees that, if cancelWithError: is called (e.g. by the app
+ * cancelling the writes), no further messages are sent to the writeable except
* writesFinishedWithError:.
*
* TODO(jcanizales): Let the user specify another queue for the writeable callbacks.
diff --git a/src/objective-c/RxLibrary/GRXConcurrentWriteable.m b/src/objective-c/RxLibrary/GRXConcurrentWriteable.m
index d9d0e8c31e..e50cdf240d 100644
--- a/src/objective-c/RxLibrary/GRXConcurrentWriteable.m
+++ b/src/objective-c/RxLibrary/GRXConcurrentWriteable.m
@@ -63,7 +63,7 @@
- (void)enqueueSuccessfulCompletion {
dispatch_async(_writeableQueue, ^{
- @synchronized (self) {
+ @synchronized(self) {
if (self->_alreadyFinished) {
return;
}
@@ -76,7 +76,7 @@
- (void)cancelWithError:(NSError *)error {
NSAssert(error != nil, @"For a successful completion, use enqueueSuccessfulCompletion.");
- @synchronized (self) {
+ @synchronized(self) {
if (self->_alreadyFinished) {
return;
}
@@ -91,7 +91,7 @@
- (void)cancelSilently {
dispatch_async(_writeableQueue, ^{
- @synchronized (self) {
+ @synchronized(self) {
if (self->_alreadyFinished) {
return;
}
diff --git a/src/objective-c/RxLibrary/GRXForwardingWriter.m b/src/objective-c/RxLibrary/GRXForwardingWriter.m
index 376c196b4f..f5ed603698 100644
--- a/src/objective-c/RxLibrary/GRXForwardingWriter.m
+++ b/src/objective-c/RxLibrary/GRXForwardingWriter.m
@@ -57,13 +57,13 @@
#pragma mark GRXWriteable implementation
- (void)writeValue:(id)value {
- @synchronized (self) {
+ @synchronized(self) {
[_writeable writeValue:value];
}
}
- (void)writesFinishedWithError:(NSError *)errorOrNil {
- @synchronized (self) {
+ @synchronized(self) {
_writer = nil;
[self finishOutputWithError:errorOrNil];
}
@@ -78,14 +78,14 @@
- (void)setState:(GRXWriterState)state {
GRXWriter *copiedWriter = nil;
if (state == GRXWriterStateFinished) {
- @synchronized (self) {
+ @synchronized(self) {
_writeable = nil;
copiedWriter = _writer;
_writer = nil;
}
copiedWriter.state = GRXWriterStateFinished;
} else {
- @synchronized (self) {
+ @synchronized(self) {
copiedWriter = _writer;
}
copiedWriter.state = state;
@@ -94,7 +94,7 @@
- (void)startWithWriteable:(id<GRXWriteable>)writeable {
GRXWriter *copiedWriter = nil;
- @synchronized (self) {
+ @synchronized(self) {
_writeable = writeable;
copiedWriter = _writer;
}
@@ -103,7 +103,7 @@
- (void)finishWithError:(NSError *)errorOrNil {
GRXWriter *copiedWriter = nil;
- @synchronized (self) {
+ @synchronized(self) {
[self finishOutputWithError:errorOrNil];
copiedWriter = _writer;
}
diff --git a/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m b/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m
index eadad6c3b6..079c11b94f 100644
--- a/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m
+++ b/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m
@@ -38,7 +38,7 @@
- (void)startWithWriteable:(id<GRXWriteable>)writeable {
id copiedValue = nil;
- @synchronized (self) {
+ @synchronized(self) {
if (_state != GRXWriterStateNotStarted) {
return;
}
@@ -63,7 +63,7 @@
// the original \a map function returns a new Writer of another type. So we
// need to override this function here.
- (GRXWriter *)map:(id (^)(id))map {
- @synchronized (self) {
+ @synchronized(self) {
// Since _value is available when creating the object, we can simply
// apply the map and store the output.
_value = map(_value);