Workiva / furious

Fast and modular async task library for Google App Engine.
Apache License 2.0
37 stars 39 forks source link

Get_current_async() returns base Async in complete event handler #141

Closed markshaule-wf closed 10 years ago

markshaule-wf commented 10 years ago

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.

markshaule-wf commented 10 years ago

Fixed in Furious release 1.1.0