Lines Matching refs:future

39     int v, int *sent, PyObject **future);
43 static PyObject *nxt_py_asgi_lifespan_done(PyObject *self, PyObject *future);
306 PyObject *msg, *future, *res; in nxt_py_asgi_lifespan_target_shutdown() local
318 future = lifespan->receive_future; in nxt_py_asgi_lifespan_target_shutdown()
324 res = PyObject_CallMethodObjArgs(future, nxt_py_set_result_str, in nxt_py_asgi_lifespan_target_shutdown()
330 Py_DECREF(future); in nxt_py_asgi_lifespan_target_shutdown()
363 PyObject *msg, *future; in nxt_py_asgi_lifespan_receive() local
372 future = PyObject_CallObject(ctx_data->loop_create_future, NULL); in nxt_py_asgi_lifespan_receive()
373 if (nxt_slow_path(future == NULL)) { in nxt_py_asgi_lifespan_receive()
386 return nxt_py_asgi_set_result_soon(NULL, ctx_data, future, msg); in nxt_py_asgi_lifespan_receive()
394 return nxt_py_asgi_set_result_soon(NULL, ctx_data, future, msg); in nxt_py_asgi_lifespan_receive()
397 Py_INCREF(future); in nxt_py_asgi_lifespan_receive()
398 lifespan->receive_future = future; in nxt_py_asgi_lifespan_receive()
400 return future; in nxt_py_asgi_lifespan_receive()
493 PyObject *future, *res; in nxt_py_asgi_lifespan_send_() local
502 future = *pfuture; in nxt_py_asgi_lifespan_send_()
505 res = PyObject_CallMethodObjArgs(future, nxt_py_set_result_str, in nxt_py_asgi_lifespan_send_()
515 Py_DECREF(future); in nxt_py_asgi_lifespan_send_()
547 nxt_py_asgi_lifespan_done(PyObject *self, PyObject *future) in nxt_py_asgi_lifespan_done() argument
564 res = PyObject_CallMethodObjArgs(future, nxt_py_result_str, NULL); in nxt_py_asgi_lifespan_done()
574 future = lifespan->startup_future; in nxt_py_asgi_lifespan_done()
577 res = PyObject_CallMethodObjArgs(future, nxt_py_set_result_str, in nxt_py_asgi_lifespan_done()
585 Py_DECREF(future); in nxt_py_asgi_lifespan_done()
589 future = lifespan->shutdown_future; in nxt_py_asgi_lifespan_done()
592 res = PyObject_CallMethodObjArgs(future, nxt_py_set_result_str, in nxt_py_asgi_lifespan_done()
600 Py_DECREF(future); in nxt_py_asgi_lifespan_done()