mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-27 16:21:18 +01:00
tasks: only care about async methods right now
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user