From b6111d8dc3015d5cf5eefb5e8aecd84ef5196162 Mon Sep 17 00:00:00 2001 From: Flavio Brasil Date: Sun, 17 Sep 2023 16:43:21 -0700 Subject: [PATCH] minor --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b83ed1cce..03849a069 100644 --- a/README.md +++ b/README.md @@ -249,10 +249,10 @@ In some specific cases where Kyo isn't used as the main effect system of an appl val a: Int > IOs = IOs(42) -// ** Avoid 'IOs.run' this, use 'kyo.App' instead) ** +// ** Avoid 'IOs.run', use 'kyo.App' instead) ** val b: Int = IOs.run(a).pure -// ** Avoid 'IOs.run' this, use 'kyo.App' instead) ** +// ** Avoid 'IOs.run', use 'kyo.App' instead) ** ``` The `runLazy` method accepts computations with other effects but it doesn't guarantee that all side effects are performed before the method returns. If other effects still have to be handled, the side effects can be executed later once the other effects are handled. This a low-level API that must be used with caution. @@ -268,11 +268,11 @@ val a: Int > (Options with IOs) = } } -// ** Avoid 'IOs.runLazy' this, use 'kyo.App' instead) ** +// ** Avoid 'IOs.runLazy', use 'kyo.App' instead) ** // Handle the 'IOs' effect lazily val b: Int > Options = IOs.runLazy(a) -// ** Avoid 'IOs.runLazy' this, use 'kyo.App' instead) ** +// ** Avoid 'IOs.runLazy', use 'kyo.App' instead) ** // Since the computation is suspended with the // 'Options' effect first, the lazy IOs execution @@ -406,7 +406,7 @@ val b: Int > IOs = Resources.run(a) ``` -### Choices: Decision Making and Exploration +### Choices: Exploratory Branching The `Choices` effect is designed to aid in handling and exploring multiple options, pathways, or outcomes in a computation. This effect is particularly useful in scenarios where you're dealing with decision trees, backtracking algorithms, or any situation that involves dynamically exploring multiple options. @@ -882,6 +882,10 @@ val b: Boolean > IOs = > A `Promise` is basically a `Fiber` with all the regular functionality plus the `complete` method to manually fulfill the promise. +### Channels: Asynchronous Communication + + + License -------