Asynchronous model: context time --- async = request + reponse + handler + context + time;

futureHandler = current(handler, context(t0)) : T0    ->    handler(context(t0),taskResult) : Tx

T0:request(params, handler, context(0));

Tn:hander(response, context(0))

 

context = subsequent operations can gain access to the environment variables + role in the current environment.

 

The scope} {subsequent operation is not performed as context packing;

When the function call corresponds to the function call by a stack frame is stored as context;

 

async = request + reponse + handler + context + time;

Guess you like

Origin www.cnblogs.com/feng9exe/p/11206207.html