mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
Add Process and Signals support
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6123a68195
commit
c96ffe52c0
6 changed files with 139 additions and 0 deletions
20
tools/python/jwutils/asyncio/Process.py
Normal file
20
tools/python/jwutils/asyncio/Process.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from abc import abstractmethod
|
||||
|
||||
from ..Process import Process as ProcessBase
|
||||
from .Signals import Signals
|
||||
|
||||
class Process(ProcessBase): # export
|
||||
|
||||
__signals = Signals()
|
||||
|
||||
def __init__(self, aio):
|
||||
super().__init()
|
||||
self.aio = aio
|
||||
|
||||
@classmethod
|
||||
@abstractmethod
|
||||
def signals(cls):
|
||||
return cls.__signals
|
||||
|
||||
def wait(self):
|
||||
return self.aio.wait()
|
||||
Loading…
Add table
Add a link
Reference in a new issue