-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add variants of `*All` methods with varargs, to avoid wrapping everything in Sets * Move the mapping function to a separate parameter list, to improve cases where you’d want to have a more complex function as a block expression Before: ``` cache.getAll(Set("key", "key2"))(keys => { val foo = ??? ZIO .attempt(foo) .orElse(ZIO.attempt(???)) .orElseSucceed(???) }) ``` After: ``` cache.getAll("key", "key2") { keys => val foo = ??? ZIO .attempt(foo) .orElse(ZIO.attempt(???)) .orElseSucceed(???) } ```
- Loading branch information
Pierre Dal-Pra
authored
Apr 27, 2022
1 parent
a0696a1
commit 454db23
Showing
3 changed files
with
81 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters