Skip to content

Instantly share code, notes, and snippets.

@baz
Created February 21, 2014 23:19
Show Gist options
  • Save baz/9145682 to your computer and use it in GitHub Desktop.
Save baz/9145682 to your computer and use it in GitHub Desktop.
Creating a RACScheduler
RACScheduler* bee_plugin_rac_scheduler(void) {
static RACQueueScheduler *b_rac_scheduler;
if (b_rac_scheduler == NULL) {
static dispatch_once_t oncePredicate;
dispatch_once(&oncePredicate, ^{
b_rac_scheduler = [[RACQueueScheduler alloc] initWithName:@"io.neat.Bee.rac-scheduler" queue:bee_plugin_queue()];
});
}
return b_rac_scheduler;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment