Skip to content

Instantly share code, notes, and snippets.

@zadr
Last active February 11, 2016 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zadr/64e69af3bc18cb0b81e4 to your computer and use it in GitHub Desktop.
Save zadr/64e69af3bc18cb0b81e4 to your computer and use it in GitHub Desktop.
- (void) performMagic:(Incantation) incantation interruptingCurrentSpell:(BOOL) immediately {
switch ((int)immediately) {
case NO:
[self _magic:incantation];
break;
default:
dispatch_async(wand_queue, ^{ [self _magic:incantation]; });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment