On Thu, Feb 2, 2017 at 12:08 AM, Johannes Zeppenfeld <zeppe...@gmail.com> wrote:
> 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. > Good point. Indeed, that seems safe... > 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. > Sorry, there isn't. -Kenton > > 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 capnproto+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/capnproto. > -- 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 capnproto+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/capnproto.