yield by char

This commit is contained in:
2025-12-02 17:23:23 +08:00
parent f0e8ee3a06
commit bbef402356

View File

@@ -249,6 +249,10 @@ class TextReleaser:
continue
if state.in_delay_mode:
time.sleep(self.WAIT_TIME)
yield text_to_yield
# Yield character by character with delay
for char in text_to_yield:
yield char
time.sleep(self.WAIT_TIME)
else:
# Yield entire chunk immediately
yield text_to_yield