Похожие чаты

So uhh I don't really write C#, but I have

a specific (and maybe dumb) question. Am looking at S3 API used in a Unity project that looks like this:

await TransferUtility.UploadDirectoryAsync (string);

It works fine when things are okay, but it does *not* raise an exception if there's no network for example. It just waits until network is available again. We don't want this behaviour. We want it to eagerly fail if it cannot upload.

This is the API doc in question.

Could this be related to something with the S3 SDK, or something else I'm overlooking?

Any other pointers welcome.

3 ответов

10 просмотров

Why don't you check the network connectivity before call it?

Talula
Why don't you check the network connectivity befor...

We could; but isn't it generally better to try and fail than check and try? You do introduce a race when you check and try.

are you sure exception is not being eaten?

Похожие вопросы

Обсуждают сегодня

я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
80
читать файл максимально быстро? странный вопрос))
zamtmn
53
30 BCH videos in Hausa Language successfully delivered. In December 2023, I created a Flipstarter to produce Bitcoin Cash videos in the Hausa language for greater outreach an...
Munnir
5
bhai koi aur group ha crpto discussion ke liye?
ashu bhardwaj
12
I saw that? Again sounds very good for WOD i am DYP investor and holder, from which WOD was created right? Ill ask the question again Dhoni do i as a DYP holder for more than ...
DavidAkaLugi
9
Интересно, а майкрософт 365 может запустится на линукс минт?
Лисицка
18
How to create an OS in C? what to study?
Linus
18
Всем доброго вечера! Хочу поделиться своим злоключением с человеком, который, как оказалось сюда тоже скидывал свое резюме. Жаль, что я вашу группу не нашел раньше… человек ки...
Роман Ахмедзянов
4
братва! где куличи брать?
Alöscha
25
тоесть, указав return eax, сгенерируется никому ненужная инструкция mov eax,eax ?
Aiwan \ (•◡•) / _bot
24
Карта сайта