Home
last modified time | relevance | path

Searched refs:create_future (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_concurrent_futures.py27 def create_future(state=PENDING, exception=None, result=None): function
35 PENDING_FUTURE = create_future(state=PENDING)
36 RUNNING_FUTURE = create_future(state=RUNNING)
37 CANCELLED_FUTURE = create_future(state=CANCELLED)
38 CANCELLED_AND_NOTIFIED_FUTURE = create_future(state=CANCELLED_AND_NOTIFIED)
39 EXCEPTION_FUTURE = create_future(state=FINISHED, exception=OSError())
40 SUCCESSFUL_FUTURE = create_future(state=FINISHED, result=42)
641 f1 = create_future(state=PENDING)
642 f2 = create_future(state=RUNNING)
643 f3 = create_future(state=CANCELLED)
[all …]
/external/python/futures/
Dtest_futures.py106 def create_future(state=PENDING, exception=None, result=None): function
114 PENDING_FUTURE = create_future(state=PENDING)
115 RUNNING_FUTURE = create_future(state=RUNNING)
116 CANCELLED_FUTURE = create_future(state=CANCELLED)
117 CANCELLED_AND_NOTIFIED_FUTURE = create_future(state=CANCELLED_AND_NOTIFIED)
118 EXCEPTION_FUTURE = create_future(state=FINISHED, exception=IOError())
119 SUCCESSFUL_FUTURE = create_future(state=FINISHED, result=42)
646 f1 = create_future(state=PENDING)
647 f2 = create_future(state=RUNNING)
648 f3 = create_future(state=CANCELLED)
[all …]
/external/python/cpython3/Lib/asyncio/
Dlocks.py173 fut = self._loop.create_future()
261 fut = self._loop.create_future()
323 fut = self._loop.create_future()
442 fut = self._loop.create_future()
Dtasks.py335 waiter = loop.create_future()
368 waiter = loop.create_future()
471 future = loop.create_future()
582 outer = loop.create_future()
670 outer = loop.create_future()
Dqueues.py130 putter = self._loop.create_future()
164 getter = self._loop.create_future()
Dbase_events.py168 fut = loop.create_future()
228 waiter = self._loop.create_future()
273 def create_future(self): member in BaseEventLoop
818 waiter = self.create_future()
936 waiter = self.create_future()
1096 waiter = self.create_future()
1113 waiter = self.create_future()
Dselector_events.py219 waiter = self.create_future()
365 fut = self.create_future()
403 fut = self.create_future()
449 fut = self.create_future()
502 fut = self.create_future()
Dstreams.py209 waiter = self._loop.create_future()
456 self._waiter = self._loop.create_future()
Dfutures.py432 new_future = loop.create_future()
Dwindows_events.py374 waiter = self.create_future()
425 fut = self._loop.create_future()
Dbase_subprocess.py240 waiter = self._loop.create_future()
Devents.py275 def create_future(self): member in AbstractEventLoop
Dunix_events.py187 waiter = self.create_future()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_base_events.py929 def __init__(self, create_future=False): argument
932 if create_future:
959 def __init__(self, create_future=False, loop=None): argument
962 if create_future:
1524 lambda: MyDatagramProto(create_future=True, loop=self.loop),
1573 lambda: MyDatagramProto(create_future=True, loop=self.loop),
1603 lambda: MyDatagramProto(create_future=True, loop=self.loop),
Dtest_selector_events.py387 resolved = self.loop.create_future()
416 resolved = self.loop.create_future()
Dtest_tasks.py93 self.loop.create_future = lambda: self.new_future(self.loop)
/external/python/cpython3/Doc/library/
Dasyncio-eventloop.rst213 .. method:: AbstractEventLoop.create_future()
/external/python/cpython3/Doc/whatsnew/
D3.6.rst843 * New :meth:`loop.create_future() <asyncio.BaseEventLoop.create_future>`
D3.5.rst843 * New :meth:`loop.create_future() <asyncio.BaseEventLoop.create_future>`
/external/python/cpython3/Misc/
DNEWS3205 - Issue #27041: asyncio: Add loop.create_future method
4736 - Issue #27041: asyncio: Add loop.create_future method