You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. At this time, the library does not have any decorator to access UnityWebRequest.timeout property. But you can simulate it for your request with something like this:
var request = new As<string>(new Get(new Text("https://google.com")));
var timeout = Task.Delay(TimeSpan.FromSeconds(4.0f));
await Task.WhenAny(AsTask(request), timeout);
Given that any request is awaitable you can write your AsTask method like this:
how can I set a timeout?
The text was updated successfully, but these errors were encountered: