Escaping closure management

You may find Equality of functions to be an interesting read.

But for now, I cannot think of anything dramatically different from what @sveinhal suggested. The only thing I can add to that, is that I would suggest using object reference instead of UUID. Memory allocation comes with a unique I’d generator built-in. As a bonus you can automatically unsubscribe on deinit of the returned object.

2 Likes