withProgress<R> method

Future withProgress<R>(
  1. ProgressOptions options,
  2. Future task(
    1. Progress,
    2. CancellationToken
    )
)

Show progress in the editor. Progress is shown while running the given callback and while the promise it returned isn't resolved nor rejected. The location at which progress should show (and other details) is defined via the passed {@linkcode ProgressOptions}.

Implementation

_i2.Future<_i2.dynamic> withProgress<R>(
  _i4.ProgressOptions options,
  _i2.Future<_i2.dynamic> Function(
    _i4.Progress<_i2.dynamic>,
    _i4.CancellationToken,
  ) task,
) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'withProgress',
      [
        options,
        _i3.allowInterop(task),
      ],
    ));