<s> """<STR_LIT>""" <EOL> from slacker . adisp . _adisp import CallbackDispatcher , async <EOL> from slacker . postpone import Postponed , Slacker <EOL> class _SlackerCallbackDispatcher ( CallbackDispatcher ) : <EOL> def call ( self , callers ) : <EOL> if hasattr ( callers , '<STR_LIT>' ) : <EOL> callers = map ( self . _prepare , callers ) <EOL> else : <EOL> callers = self . _prepare ( callers ) <EOL> return super ( _SlackerCallbackDispatcher , self ) . call ( callers ) <EOL> def _prepare ( self , func ) : <EOL> if isinstance ( func , ( Postponed , Slacker ) ) : <EOL> return async ( func . proceed ) ( ) <EOL> return func <EOL> def process ( func ) : <EOL> def wrapper ( * args , ** kwargs ) : <EOL> _SlackerCallbackDispatcher ( func ( * args , ** kwargs ) ) <EOL> return wrapper </s>
