Skip to content

Commit c2fc5bd

Browse files
add comments
1 parent 0d51879 commit c2fc5bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/_asynciomodule.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3461,7 +3461,10 @@ task_eager_start(asyncio_state *state, TaskObj *task)
34613461
if (prevtask == NULL) {
34623462
return -1;
34633463
}
3464-
3464+
// register the task into the linked list of tasks
3465+
// if the task completely eagerly then it will unregister itself
3466+
// in future_schedule_callbacks when done otherwise
3467+
// it will continue in lazy execution
34653468
register_task(task);
34663469

34673470
if (PyContext_Enter(task->task_context) == -1) {

0 commit comments

Comments
 (0)