-
Pointfree episode #310 provided a somewhat unclear explanation regarding the current requirement for SharedReaderKey, which includes: func load(context: LoadContext<Value>, continuation: LoadContinuation<Value>) rather than: func load(context: LoadContext<Value>) async throws Additionally, the I am curious to understand the technical challenges involved in implementing this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @tevelee, it simply wreaks havoc on testing. You would not even be able to do something as simple as:
…because
FWIW, that is not the shape |
Beta Was this translation helpful? Give feedback.
Hi @tevelee, it simply wreaks havoc on testing. You would not even be able to do something as simple as:
…because
load
is async. You would need to insertTask.sleep
around every usage of the shared value.FWIW, that is not the shape
subscribe
would have. It would instead need to return anany AsyncSequence
.