Skip to content

Instantly share code, notes, and snippets.

@KrauseFx
Created October 30, 2014 22:07
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 KrauseFx/2f906be0fbee1520f20d to your computer and use it in GitHub Desktop.
Save KrauseFx/2f906be0fbee1520f20d to your computer and use it in GitHub Desktop.
[_writeQueue addOperationWithBlock:^{
[_writeQueueLock lock];
[_queue inDatabase:^(FMDatabase *db) {
if (![db executeUpdate:@"..." withArgumentsInArray:...]) { ... }
}];
[_writeQueueLock unlock];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment