When calling get_current_async() from a completion handler, the base Async class is returned, not the derived class.
So in the following snippet,
with context.new() as ctx:
ctx.set_event_handler('complete', CustomAsync(target=success_handler))
ctx.add(CustomAsync(target=task_to_run))
When calling get_current_async() from within success_handler I would expect a 'CustomAsync' to get returned. In the current version (1.0), a base 'Async' gets returned.
When calling get_current_async() from a completion handler, the base Async class is returned, not the derived class.
So in the following snippet, with context.new() as ctx: ctx.set_event_handler('complete', CustomAsync(target=success_handler)) ctx.add(CustomAsync(target=task_to_run))
When calling get_current_async() from within
success_handler
I would expect a 'CustomAsync' to get returned. In the current version (1.0), a base 'Async' gets returned.