getTokenInfoCancelable method

CancelableOperation<TokenInfo> getTokenInfoCancelable()

Cancelable version of getTokenInfo. See that method for more information.

Implementation

CancelableOperation<TokenInfo> getTokenInfoCancelable() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_TokenCredential_getTokenInfoAsync(
        _handle, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsTokenInfo()!);
}