Class TextThrottler
Throttles incoming streaming text and emits it in fixed-size chunks at a fixed interval.
Designed for runtime usage (MonoBehaviour).
Inheritance
TextThrottler
Assembly: Glitch9.IO.dll
Syntax
public sealed class TextThrottler : IDisposable
Constructors
|
Edit this page
View Source
TextThrottler(int, int)
Declaration
public TextThrottler(int charsPerTick = 32, int tickMs = 80)
Parameters
| Type |
Name |
Description |
| int |
charsPerTick |
|
| int |
tickMs |
|
Methods
|
Edit this page
View Source
AppendDelta(string)
Declaration
public void AppendDelta(string delta)
Parameters
| Type |
Name |
Description |
| string |
delta |
|
|
Edit this page
View Source
Complete(bool)
Declaration
public void Complete(bool immediate = true)
Parameters
| Type |
Name |
Description |
| bool |
immediate |
|
|
Edit this page
View Source
Dispose()
Declaration
|
Edit this page
View Source
ResetAll()
Declaration
|
Edit this page
View Source
Tick(int)
Call this method periodically (e.g., from a timer or Unity Update) with elapsed ms.
Declaration
public void Tick(int elapsedMs)
Parameters
| Type |
Name |
Description |
| int |
elapsedMs |
|
Events
|
Edit this page
View Source
OnTick
Declaration
public event Action<string> OnTick
Event Type
|
Edit this page
View Source
OnTickCompleted
Declaration
public event Action OnTickCompleted
Event Type
Implements
Extension Methods