[DiscordArchive] how many threads can update _cacheState ? 1 or more ?
[DiscordArchive] how many threads can update _cacheState ? 1 or more ?
Archived author: Tea • Posted: 2024-07-17T20:14:16.115000+00:00
Original source
and use std::launch::async as first arg
Archived author: jackpoz • Posted: 2024-07-17T20:14:23.109000+00:00
Original source
well, 1st step: getting it to work: done
Archived author: jackpoz • Posted: 2024-07-17T20:14:30.217000+00:00
Original source
next step: iterate and improve
Archived author: Foe • Posted: 2024-07-17T20:15:14.591000+00:00
Original source
I only read some comments about it, but some people seemed to mention that it *could* be blocking? I haven't taken the time to read the docs fully yet though
Archived author: Foe • Posted: 2024-07-17T20:15:21.424000+00:00
Original source
async that is
Archived author: Tea • Posted: 2024-07-17T20:16:40.831000+00:00
Original source
oh well
Archived author: Foe • Posted: 2024-07-17T20:16:55.189000+00:00
Original source
I guess that's if you don't provide it a policy (async, deferred) like you mentioned with the first arg
Archived author: jackpoz • Posted: 2024-07-17T20:17:49.636000+00:00
Original source
and then you still need to let it finish somehow or check if it's done, right ?
Archived author: Foe • Posted: 2024-07-17T20:18:00.828000+00:00
Original source
yeah, which is blocking
Archived author: Tea • Posted: 2024-07-17T20:18:14.319000+00:00
Original source
ok i didnt know this