mirror of
https://github.com/koush/scrypted.git
synced 2026-06-21 00:50:30 +01:00
sdk: add cluster manager
This commit is contained in:
8
server/python/plugin_console.py
Normal file
8
server/python/plugin_console.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import typing
|
||||
|
||||
async def writeWorkerGenerator(gen, out: typing.TextIO):
|
||||
try:
|
||||
async for item in gen:
|
||||
out.buffer.write(item)
|
||||
except Exception as e:
|
||||
pass
|
||||
Reference in New Issue
Block a user