mirror of
https://github.com/LiteyukiStudio/croterline.git
synced 2024-11-29 00:25:54 +08:00
🐛 fix uninit ctx
This commit is contained in:
parent
5d505d1c89
commit
1bf1380b63
@ -13,7 +13,12 @@ _current_ctx: "Context | None" = None # 注入当前进程上下文
|
|||||||
|
|
||||||
class SubProcess:
|
class SubProcess:
|
||||||
def __init__(
|
def __init__(
|
||||||
self, name: str, func: ProcessFuncType, ctx: Context = Context(), *args, **kwargs
|
self,
|
||||||
|
name: str,
|
||||||
|
func: ProcessFuncType,
|
||||||
|
ctx: Context = Context(),
|
||||||
|
*args,
|
||||||
|
**kwargs,
|
||||||
):
|
):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.func = func
|
self.func = func
|
||||||
|
Loading…
Reference in New Issue
Block a user