From 74d9bb6c8ff776377da26061a93fa2346275d2e2 Mon Sep 17 00:00:00 2001 From: Nadine Salter Date: Wed, 21 Jan 2015 14:34:09 -0800 Subject: [PATCH] [docs] Tweak README code snippet. --- README.md | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 256e4847..537da9a8 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ dispatch_async(_backgroundQueue, ^{ node.frame = (CGRect){ CGPointZero, node.calculatedSize }; // self.view isn't a node, so we can only use it on the main thread - dispatch_sync(dispatch_get_main_queue(), ^{ + dispatch_async(dispatch_get_main_queue(), ^{ [self.view addSubview:node.view]; }); }); diff --git a/docs/index.md b/docs/index.md index b71d4f0a..deb11d0b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -52,7 +52,7 @@ dispatch_async(_backgroundQueue, ^{ node.frame = (CGRect){ CGPointZero, node.calculatedSize }; // self.view isn't a node, so we can only use it on the main thread - dispatch_sync(dispatch_get_main_queue(), ^{ + dispatch_async(dispatch_get_main_queue(), ^{ [self.view addSubview:node.view]; }); });