statusAsStream method
Returns processing job as Stream
token
from ConvertResultEntity.token
checkInterval
check status interval
Implementation
Stream<ConvertJobEntity<E>> statusAsStream(
int token, {
Duration checkInterval = const Duration(seconds: 5),
}) {
final StreamController<ConvertJobEntity<E>> controller =
StreamController.broadcast();
Timer(checkInterval,
() => _statusTimerCallback(token, checkInterval, controller));
return controller.stream;
}