Callback function type for cancellable line processing. Returns true to continue processing, false to stop.
typedef CancelableLineAction = bool Function(String line);