Create a gist now

Instantly share code, notes, and snippets.

NSMutableString *string = @"foo";
[delayedUppercaser upcaseStringInFuture:string];
// using waitFor
[[string waitFor] equal:@"FOO"]; // will never fail
// using shouldEventually
[[string shouldEventually] equal:@"FOO"]; // will fail if it doesn't change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment