Lines Matching full:callback
12 // Callback --------------------------------------------------------------------
14 // A Callback is like a Task but with unbound parameters. It is basically an
21 // users to not care which type of class implements the callback, only that it
31 // necessary. The pointer in a callback must remain valid until the callback
34 // Like Task, the callback executor is responsible for deleting the callback
35 // pointer once the callback has executed.
39 // Callback2<int, string>::Type* callback =
41 // callback->Run(5, string("hello"));
42 // delete callback;
44 // CallbackRunner<Tuple2<int, string> >* callback =
46 // callback->RunWithParams(MakeTuple(5, string("hello")));
50 // CallbackWithReturnValue<int>::Type* callback =
52 // int next_int = callback->Run();
53 // delete callback;