forked from goodboy/tractor
Drop runtime logging for asyncio mode
parent
446feff172
commit
06fa650ed0
|
@ -220,7 +220,9 @@ async def open_channel_from(
|
||||||
|
|
||||||
|
|
||||||
def run_as_asyncio_guest(
|
def run_as_asyncio_guest(
|
||||||
|
|
||||||
trio_main: Callable,
|
trio_main: Callable,
|
||||||
|
|
||||||
) -> None:
|
) -> None:
|
||||||
'''
|
'''
|
||||||
Entry for an "infected ``asyncio`` actor".
|
Entry for an "infected ``asyncio`` actor".
|
||||||
|
@ -243,8 +245,6 @@ def run_as_asyncio_guest(
|
||||||
# import signal
|
# import signal
|
||||||
# signal.signal(signal.SIGINT, signal.SIG_IGN)
|
# signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||||
|
|
||||||
get_console_log('runtime')
|
|
||||||
|
|
||||||
async def aio_main(trio_main):
|
async def aio_main(trio_main):
|
||||||
|
|
||||||
loop = asyncio.get_running_loop()
|
loop = asyncio.get_running_loop()
|
||||||
|
@ -273,4 +273,4 @@ def run_as_asyncio_guest(
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
asyncio.run(aio_main(trio_main))
|
return asyncio.run(aio_main(trio_main))
|
||||||
|
|
Loading…
Reference in New Issue