Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deferred value: Memoize value to ensure at-most-once supplier call
Since we are using deferred values to defer expensive operations, we don't want concurrent threads all performing the expensive operation. So we memoize the result of the operation to ensure at-most-once. Signed-off-by: BJ Hargrave <bj@hargrave.dev>
- Loading branch information