Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ctx* ctx = newScopedObject<Ctx>().release();
- Sync s;
- scheduler.runTask([ctx](){
- // do some stuff with ctx
- }, &s);
- scheduler.runtaskAfter(&s, [ctx](){
- // do stuff with ctx
- mem.delete(ctx);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement