Skip to content

Commit 7d2a9d5

Browse files
committed
Remove suspending decorator
1 parent f05d8fe commit 7d2a9d5

3 files changed

Lines changed: 2 additions & 30 deletions

File tree

qio/gather.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from .suspend import suspend
88
from .suspendable import Suspendable
9-
from .suspending import suspending
109

1110

1211
class Gather[T](Suspendable[T]):
@@ -76,6 +75,5 @@ def gather[T1, T2, T3, T4, T5](
7675
) -> Gather[tuple[T1, T2, T3, T4, T5]]: ...
7776

7877

79-
@suspending
8078
def gather(*awaitables: Awaitable[Any]) -> Gather[Any]:
8179
return Gather(awaitables)

qio/sleep.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
from dataclasses import dataclass
33
from threading import Timer
44

5-
from .suspending import suspending
6-
from .suspension import Suspension
5+
from .suspendable import Suspendable
76

87

98
@dataclass(eq=False, kw_only=True)
10-
class Sleep(Suspension):
9+
class Sleep(Suspendable[None]):
1110
interval: float
1211

1312
def start(self):
@@ -18,6 +17,5 @@ def start(self):
1817
return future
1918

2019

21-
@suspending
2220
def sleep(interval: float, /) -> Sleep:
2321
return Sleep(interval=interval)

qio/suspending.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)