Module Import alias identifier ImportFrom alias identifier Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str Assign NameStore Num While NameLoad body AugAssignAdd NameStore Num Expr Yield Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Num FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list If CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Import alias Return Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr decorator_list Return NameLoad decorator_list Expr Str
N/A N/A socket standardsocket gevent socket geventsocket N/A gevent N/A logging N/A time N/A logger N/A N/A logging getLogger tasklet countergen N/A N/A N/A N/A N/A  Secuence id generator.  N/A num -1 N/A True N/A N/A num 1 N/A N/A N/A str num N/A N/A cgen N/A countergen make_task N/A N/A function N/A N/A N/A  Decorator: makes function as async task.  _wrapper N/A N/A N/A gs kwgs N/A N/A start_after N/A N/A kwgs pop start_after 0 _subfunc N/A N/A N/A N/A N/A N/A id res N/A N/A next cgen None N/A N/A N/A logger info N/A %s start task <%s> N/A id N/A function __name__ N/A start_after N/A N/A N/A N/A time sleep start_after N/A res N/A function gs kwgs N/A N/A res N/A function gs kwgs N/A N/A N/A logger info N/A %s end task <%s> with response: <%s> N/A id N/A function __name__ res N/A N/A N/A N/A standardsocket socket N/A geventsocket socket N/A N/A N/A N/A gevent spawn _subfunc N/A N/A threading N/A N/A N/A N/A N/A threading Thread target _subfunc start N/A N/A _wrapper N/A N/A 
Example:

from time import sleep

import hashlib
import random

@make_task
def footask():
    sleep(random.randint(2, 10))
    return True
