Hi Kenton, Since detach would only ever be called from within the callback itself the promise couldn't be canceled anymore anyways, and stack unwinding would only destroy things allocated within the callback itself, so that shouldn't be a problem.
However, it sounds like returning the promise is the (intended) way to go. Is there some way to ask a promise whether it is currently executing? That would avoid an additional member in the implementation struct to track that myself. Thanks for the recommendation! Johannes -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
