MCPcopy Create free account
hub / github.com/EasyIME/PIME / callback

Function callback

python/python3/tornado/gen.py:524–545  ·  view source on GitHub ↗
(fut: Future)

Source from the content-addressed store, hash-verified

522 future_set_result_unless_cancelled(future, {} if keys is not None else [])
523
524 def callback(fut: Future) -> None:
525 unfinished_children.remove(fut)
526 if not unfinished_children:
527 result_list = []
528 for f in children_futs:
529 try:
530 result_list.append(f.result())
531 except Exception as e:
532 if future.done():
533 if not isinstance(e, quiet_exceptions):
534 app_log.error(
535 "Multiple exceptions in yield list", exc_info=True
536 )
537 else:
538 future_set_exc_info(future, sys.exc_info())
539 if not future.done():
540 if keys is not None:
541 future_set_result_unless_cancelled(
542 future, dict(zip(keys, result_list))
543 )
544 else:
545 future_set_result_unless_cancelled(future, result_list)
546
547 listening = set() # type: Set[Future]
548 for f in children_futs:

Callers 10

accept_handlerFunction · 0.70
run_parse_callbacksMethod · 0.70
future_add_done_callbackFunction · 0.70
_process_queueMethod · 0.70
_run_callbackMethod · 0.70
_set_returncodeMethod · 0.70
_on_connection_closeMethod · 0.70
_run_callbackMethod · 0.70
_handle_eventMethod · 0.50
jquery.jsFile · 0.50

Calls 6

future_set_exc_infoFunction · 0.90
resultMethod · 0.80
errorMethod · 0.80
appendMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected