getTokenInfoCancelable method

CancelableOperation<OAuthApplicationTokenInfo> getTokenInfoCancelable()

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

Implementation

CancelableOperation<OAuthApplicationTokenInfo> getTokenInfoCancelable() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OAuthApplicationCredential_getTokenInfoAsync(
        _handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsOAuthApplicationTokenInfo()!);
}