0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

UniTask 使用例を集める

Posted at

protected virtual async UniTask<SthResponse> _getAllResponseAsync(CancellationToken cancellationToken)
{
            if (_allResponse != null)
            {
                return _allResponse;
            }

            _allResponse = await GetAsync<SthResponse>("SthAPI/AllResponseApi", cancellationToken);
            _webApiRequester.SetMasterVersion(_allResponse.Version);
            return _allResponse;
}

 public async UniTask<TResponse> GetAsync<TResponse>(string path, CancellationToken cancellationToken)
            where TResponse : class
{
            return await Get<TResponse>(path).GetValue(cancellationToken);
}

続く

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?