summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/infini/handler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/infini/handler.py b/src/infini/handler.py
index ae3561f8..dd6c7fd7 100644
--- a/src/infini/handler.py
+++ b/src/infini/handler.py
@@ -14,6 +14,10 @@ class Handler:
return
while not queue.is_empty():
output = queue.pop()(input)
+ # TODO 允许 Handler 函数为迭代器
+ # if isinstance(output, GeneratorType):
+ # for o in output:
+ # yield o
yield output
if output.block:
return