mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 04:00:26 +00:00
v0.8.1 release
This commit is contained in:
parent
66dd4dab10
commit
c161529e90
44 changed files with 1004 additions and 552 deletions
|
|
@ -1,12 +1,11 @@
|
|||
import asyncio
|
||||
from dataclasses import dataclass
|
||||
import threading
|
||||
from concurrent.futures import Future, ThreadPoolExecutor
|
||||
from typing import Any, Callable, Optional, Coroutine, TypeVar, Union, Awaitable
|
||||
from concurrent.futures import Future
|
||||
from typing import Any, Callable, Optional, Coroutine, TypeVar, Awaitable
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
class EventLoopThread:
|
||||
_instances = {}
|
||||
_lock = threading.Lock()
|
||||
|
|
@ -155,7 +154,7 @@ class DeferredTask:
|
|||
return self._future and not self._future.done() # type: ignore
|
||||
|
||||
def restart(self, terminate_thread: bool = False) -> None:
|
||||
self.kill()
|
||||
self.kill(terminate_thread=terminate_thread)
|
||||
self._start_task()
|
||||
|
||||
def add_child_task(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue