Unsafe uses of callAsync

I just think getting the safety boiler plate right on callAsync is general such a pain it’s not worth doing.

The MultiAsyncUpdater class I posted avoid we use a lot to avoid the pitfalls :slight_smile:

Yeah, that would force you to have the MultiAsyncUpdater as a member which guarantees safety over a lot of these lifetime problems.

I’d like to point out for clarity though, none of the techniques discussed here are suitable for use in real-time threads. This is only for background worker threads.

3 Likes