Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Ryuuke5
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
Ryuuke5
4y ago
Yup, nice catch, no need to reset it to nil if you wanna keep it in memory indefinitely. I guess making it nil can be also used if you don't wanna make the same request when there is one already in flight, in case you have a 403 error
2.
▲
by
Ryuuke5
4y ago
Sure it's possible, we need to await for the Task if it already exists on the dictionary, for example we could imagine writing something like this inside an actor to make it threadSafe. private var tasksDictionary: Dictionary<