Home
last modified time | relevance | path

Searched refs:create_task (Results 1 – 25 of 30) sorted by relevance

12

/external/python/cpython3/Lib/test/test_asyncio/
Dtest_queues.py301 self.loop.run_until_complete(self.loop.create_task(consumer(queue)))
361 reader = loop.create_task(q.get())
373 reader = loop.create_task(q.get())
390 reader1 = loop.create_task(q.get())
391 reader2 = loop.create_task(q.get())
392 reader3 = loop.create_task(q.get())
422 writer = loop.create_task(q.put(2))
433 writer = loop.create_task(q.put(2))
535 put_task = loop.create_task(queue.put(1))
558 put_task = loop.create_task(queue.put(1))
Dtest_runners.py111 lo_task = asyncio.create_task(leftover())
132 lo_task = asyncio.create_task(leftover())
170 lazyboy = asyncio.create_task(spin())
Dtest_server.py50 main_task = self.loop.create_task(main(srv))
104 main_task = self.loop.create_task(main(srv))
Dtest_subprocess.py342 task = self.loop.create_task(proc.wait())
363 task = self.loop.create_task(coro)
381 task = self.loop.create_task(coro)
Dtest_selector_events.py192 f = self.loop.create_task(self.loop.sock_recv(sock, 1024))
210 fut = self.loop.create_task(
273 f = self.loop.create_task(
290 f = self.loop.create_task(self.loop.sock_sendall(sock, b''))
305 fut = self.loop.create_task(self.loop.sock_sendall(sock, b'data'))
426 fut = self.loop.create_task(
447 con = self.loop.create_task(self.loop.sock_connect(sock, addr))
528 f = self.loop.create_task(self.loop.sock_accept(sock))
Dtest_locks.py226 t0 = self.loop.create_task(lockandtrigger())
227 t1 = self.loop.create_task(lockit())
228 t2 = self.loop.create_task(lockit())
229 t3 = self.loop.create_task(lockit())
Dtest_windows_events.py103 task = self.loop.create_task(coro)
Dtest_base_events.py747 task = self.loop.create_task(coro())
754 task = self.loop.create_task(coro())
798 def create_task(self, coro): member in BaseEventLoopTests.test_create_task.EventLoop
939 asyncio.create_task(iter_one())
941 asyncio.create_task(iter_one())
Dtest_tasks.py403 task = self.loop.create_task(partial_func(2))
1231 a = loop.create_task(asyncio.sleep(0.1, 'a', loop=loop))
1232 b = loop.create_task(asyncio.sleep(0.15, 'b', loop=loop))
2115 task = loop.create_task(blocking_coroutine())
2117 wait = loop.create_task(asyncio.wait_for(task, timeout, loop=loop))
2288 task = asyncio.create_task(inner())
2367 task = loop.create_task(sub(random.randint(0, 10)))
Dutils.py99 t = loop.create_task(gen)
Dtest_streams.py590 self.loop.create_task(self.handle_client(client_reader,
659 self.loop.create_task(self.handle_client(client_reader,
/external/python/cpython3/Doc/library/
Dasyncio-future.rst47 See also the :func:`create_task` function which is the
215 # We are using the low-level "loop.create_task()" API here because
217 # Otherwise we could have just used "asyncio.create_task()".
218 loop.create_task(
Dasyncio-task.rst76 * The :func:`asyncio.create_task` function to run coroutines
83 task1 = asyncio.create_task(
86 task2 = asyncio.create_task(
160 :func:`asyncio.create_task` the coroutine is automatically
171 task = asyncio.create_task(nested())
236 .. function:: create_task(coro)
253 task = asyncio.create_task(coro())
541 task = asyncio.create_task(foo())
658 Use the high-level :func:`asyncio.create_task` function to create
659 Tasks, or the low-level :meth:`loop.create_task` or
[all …]
Dasyncio-dev.rst148 or the coroutine is not scheduled with :meth:`asyncio.create_task`, asyncio
180 :meth:`asyncio.create_task` function::
202 asyncio.create_task(bug())
Dasyncio-llapi-index.rst120 * - :meth:`loop.create_task`
124 - Set a factory used by :meth:`loop.create_task` to
128 - Get the factory :meth:`loop.create_task` uses
Dasyncio-api-index.rst24 * - :func:`create_task`
Dasyncio-queue.rst181 task = asyncio.create_task(worker(f'worker-{i}', queue))
Dasyncio-sync.rst111 waiter_task = asyncio.create_task(waiter(event))
/external/python/cpython3/Lib/asyncio/
Dtasks.py319 def create_task(coro): function
325 return loop.create_task(coro)
581 task = loop.create_task(coro_or_future)
Dbase_subprocess.py53 self._loop.create_task(self._connect_pipes(waiter))
Devents.py280 def create_task(self, coro): member in AbstractEventLoop
Dstreams.py239 self._loop.create_task(res)
Dbase_events.py398 def create_task(self, coro): member in BaseEventLoop
485 self.call_soon_threadsafe(self.create_task, agen.aclose())
/external/python/cpython3/Lib/test/
Dtest_asyncgen.py592 t = self.loop.create_task(it.__anext__())
994 t1 = self.loop.create_task(wait())
995 t2 = self.loop.create_task(wait())
1028 t = self.loop.create_task(wait())
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst344 Optimize asyncio.iscoroutine() and loop.create_task() for non-native
347 'loop.create_task(python_coroutine)' used to be 20% faster than
348 'loop.create_task(cython_coroutine)'. Now, the latter is as fast.
418 Implement asyncio.create_task(coro) shortcut

12