SHARE
TWEET

Untitled

a guest May 25th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Ctx* ctx = newScopedObject<Ctx>().release();
  2. Sync s;
  3. scheduler.runTask([ctx](){
  4.     // do some stuff with ctx
  5. }, &s);
  6.  
  7. scheduler.runtaskAfter(&s, [ctx](){
  8.   // do stuff with ctx
  9.   mem.delete(ctx);
  10. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top