mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-05 21:20:40 +02:00
tasks: only care about async methods right now
This commit is contained in:
parent
c34351270c
commit
09ceae90ec
@ -22,8 +22,7 @@ class TaskStatus(Enum):
|
||||
class Task(pydase.DataService, Generic[P, R]):
|
||||
def __init__(
|
||||
self,
|
||||
func: Callable[Concatenate[Any, P], R | None]
|
||||
| Callable[Concatenate[Any, P], Coroutine[Any, Any, R | None]],
|
||||
func: Callable[Concatenate[Any, P], Coroutine[None, None, R | None]],
|
||||
) -> None:
|
||||
super().__init__()
|
||||
self._func = func
|
||||
|
Loading…
x
Reference in New Issue
Block a user