ACIL FM
Dark
Refresh
Current DIR:
/opt/alt/python37/lib64/python3.7/asyncio
/
opt
alt
python37
lib64
python3.7
asyncio
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
base_events.py
68.19 MB
chmod
View
DL
Edit
Rename
Delete
base_futures.py
2.03 MB
chmod
View
DL
Edit
Rename
Delete
base_subprocess.py
8.58 MB
chmod
View
DL
Edit
Rename
Delete
base_tasks.py
2.11 MB
chmod
View
DL
Edit
Rename
Delete
constants.py
888 B
chmod
View
DL
Edit
Rename
Delete
coroutines.py
8.41 MB
chmod
View
DL
Edit
Rename
Delete
events.py
25.61 MB
chmod
View
DL
Edit
Rename
Delete
format_helpers.py
2.35 MB
chmod
View
DL
Edit
Rename
Delete
futures.py
12.52 MB
chmod
View
DL
Edit
Rename
Delete
locks.py
15.54 MB
chmod
View
DL
Edit
Rename
Delete
log.py
124 B
chmod
View
DL
Edit
Rename
Delete
proactor_events.py
25.05 MB
chmod
View
DL
Edit
Rename
Delete
protocols.py
6.87 MB
chmod
View
DL
Edit
Rename
Delete
queues.py
7.82 MB
chmod
View
DL
Edit
Rename
Delete
runners.py
1.97 MB
chmod
View
DL
Edit
Rename
Delete
selector_events.py
36.79 MB
chmod
View
DL
Edit
Rename
Delete
sslproto.py
26.3 MB
chmod
View
DL
Edit
Rename
Delete
streams.py
24.01 MB
chmod
View
DL
Edit
Rename
Delete
subprocess.py
7.08 MB
chmod
View
DL
Edit
Rename
Delete
tasks.py
29.98 MB
chmod
View
DL
Edit
Rename
Delete
transports.py
9.88 MB
chmod
View
DL
Edit
Rename
Delete
unix_events.py
39.96 MB
chmod
View
DL
Edit
Rename
Delete
windows_events.py
29.51 MB
chmod
View
DL
Edit
Rename
Delete
windows_utils.py
4.95 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
1.14 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/alt/python37/lib64/python3.7/asyncio/runners.py
__all__ = 'run', from . import coroutines from . import events from . import tasks def run(main, *, debug=False): """Execute the coroutine and return the result. This function runs the passed coroutine, taking care of managing the asyncio event loop and finalizing asynchronous generators. This function cannot be called when another asyncio event loop is running in the same thread. If debug is True, the event loop will be run in debug mode. This function always creates a new event loop and closes it at the end. It should be used as a main entry point for asyncio programs, and should ideally only be called once. Example: async def main(): await asyncio.sleep(1) print('hello') asyncio.run(main()) """ if events._get_running_loop() is not None: raise RuntimeError( "asyncio.run() cannot be called from a running event loop") if not coroutines.iscoroutine(main): raise ValueError("a coroutine was expected, got {!r}".format(main)) loop = events.new_event_loop() try: events.set_event_loop(loop) loop.set_debug(debug) return loop.run_until_complete(main) finally: try: _cancel_all_tasks(loop) loop.run_until_complete(loop.shutdown_asyncgens()) finally: events.set_event_loop(None) loop.close() def _cancel_all_tasks(loop): to_cancel = tasks.all_tasks(loop) if not to_cancel: return for task in to_cancel: task.cancel() loop.run_until_complete( tasks.gather(*to_cancel, loop=loop, return_exceptions=True)) for task in to_cancel: if task.cancelled(): continue if task.exception() is not None: loop.call_exception_handler({ 'message': 'unhandled exception during asyncio.run() shutdown', 'exception': task.exception(), 'task': task, })
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply