Skip to content

IndexError While using the "Chain" Method on a function with @asyn.cancellable #27

@TrevisGordan

Description

@TrevisGordan

Now I have a real issue:
If you use the normal await style from the chain example e.g:
result = await compute(x, y)
on a function with an @asyn.cancellable decorator, it will throw an:
IndexError: tuple index out of range Error.
(File "asyn.py", line 327, in new_gen)

result = await compute(x, y)

if isinstance(args[0], TaskId): # Not a bound method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions