forked from goodboy/tractor
Support no arg to `Context.started()` like trio
parent
a2e2f7e7a8
commit
9a4244b9a6
|
@ -339,7 +339,7 @@ class Context:
|
||||||
if self._portal:
|
if self._portal:
|
||||||
self._portal._streams.remove(rchan)
|
self._portal._streams.remove(rchan)
|
||||||
|
|
||||||
async def started(self, value: Any) -> None:
|
async def started(self, value: Optional[Any] = None) -> None:
|
||||||
|
|
||||||
if self._portal:
|
if self._portal:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
|
|
Loading…
Reference in New Issue