class
D4::WriteControl
- D4::WriteControl
- Reference
- Object
Overview
Coordinates progress reporting and cooperative cancellation for D4 writes.
A control may be cancelled from another fiber or thread. Callbacks run in the fiber performing the write and should return quickly.
Defined in:
d4/write_control.crConstructors
Instance Method Summary
-
#cancel : Nil
Requests cancellation.
- #cancelled? : Bool
-
#check! : Nil
Raises
CancelledErrorwhen cancellation has been requested. -
#update(progress : WriteProgress) : Nil
Emits a progress snapshot after checking for cancellation.
Constructor Detail
Instance Method Detail
def update(progress : WriteProgress) : Nil
#
Emits a progress snapshot after checking for cancellation.