Guest User

Untitled

a guest
May 25th, 2019
77
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