Timeline for Can resource which requires asynchronous cleanup be constructed synchronously?
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 30, 2021 at 20:26 | comment | added | Shadow | @JimmyJames I guess that's ok if waiting synchronously is an option for us. Maybe turn it into an answer and we'll see further comments? | |
| Nov 30, 2021 at 20:14 | answer | added | John Wu | timeline score: 4 | |
| Nov 30, 2021 at 19:37 | comment | added | JimmyJames | Did you look at the part that says "explicitly execute your async method in a thread pool thread and wait for it to finish"? I'm not sure you need to wait for it to finish here. | |
| Nov 30, 2021 at 19:30 | comment | added | JimmyJames | Could you elaborate on that point? | |
| Nov 30, 2021 at 19:27 | comment | added | Shadow | @JimmyJames I think usually we do not want to do it, because we may deadlock | |
| Nov 30, 2021 at 19:26 | comment | added | JimmyJames | Maybe this is relevant: stackoverflow.com/questions/22628087/… | |
| Nov 30, 2021 at 19:19 | comment | added | Shadow | @JimmyJames updated question with example. | |
| Nov 30, 2021 at 19:19 | history | edited | Shadow | CC BY-SA 4.0 | added 329 characters in body |
| Nov 30, 2021 at 19:15 | comment | added | JimmyJames | I think you should explain what you mean by async construction: stackoverflow.com/questions/8145479/can-constructors-be-async | |
| Nov 30, 2021 at 19:06 | history | asked | Shadow | CC BY-SA 4.0 |