MCPcopy
hub / github.com/opendevops-cn/opendevops / callback

Function callback

scripts/tornado_source_code/tornado/gen.py:495–516  ·  view source on GitHub ↗
(fut: Future)

Source from the content-addressed store, hash-verified

493 future_set_result_unless_cancelled(future, {} if keys is not None else [])
494
495 def callback(fut: Future) -> None:
496 unfinished_children.remove(fut)
497 if not unfinished_children:
498 result_list = []
499 for f in children_futs:
500 try:
501 result_list.append(f.result())
502 except Exception as e:
503 if future.done():
504 if not isinstance(e, quiet_exceptions):
505 app_log.error(
506 "Multiple exceptions in yield list", exc_info=True
507 )
508 else:
509 future_set_exc_info(future, sys.exc_info())
510 if not future.done():
511 if keys is not None:
512 future_set_result_unless_cancelled(
513 future, dict(zip(keys, result_list))
514 )
515 else:
516 future_set_result_unless_cancelled(future, result_list)
517
518 listening = set() # type: Set[Future]
519 for f in children_futs:

Callers 8

accept_handlerFunction · 0.85
run_parse_callbacksMethod · 0.85
future_add_done_callbackFunction · 0.85
_process_queueMethod · 0.85
_run_callbackMethod · 0.85
_set_returncodeMethod · 0.85
_on_connection_closeMethod · 0.85
_run_callbackMethod · 0.85

Calls 5

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

Tested by

no test coverage detected