aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-06-11 18:33:15 +0100
committerHayleigh Thompson <me@hayleigh.dev>2024-06-11 18:33:15 +0100
commit0d7817bfe17cd274bf1e241c6fdf987764d0959d (patch)
tree9c329dd84ad9c848b98594c0a06c1fd76e3608f9
parente59a118aae32fb75e28b847e9028109052e7475b (diff)
downloadlustre-0d7817bfe17cd274bf1e241c6fdf987764d0959d.tar.gz
lustre-0d7817bfe17cd274bf1e241c6fdf987764d0959d.zip
:memo: Mark effect.perform as internal.
-rw-r--r--src/lustre/effect.gleam8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lustre/effect.gleam b/src/lustre/effect.gleam
index 22f082d..fdb96f9 100644
--- a/src/lustre/effect.gleam
+++ b/src/lustre/effect.gleam
@@ -137,11 +137,9 @@ pub fn map(effect: Effect(a), f: fn(a) -> b) -> Effect(b) {
/// reach out on the [Gleam Discord](https://discord.gg/Fm8Pwmy) or
/// [open an issue](https://github.com/lustre-labs/lustre/issues/new)!
///
-pub fn perform(
- effect: Effect(a),
- dispatch: fn(a) -> Nil,
- emit: fn(String, Json) -> Nil,
-) -> Nil {
+@internal
+pub fn perform(effect: Effect(a), dispatch: fn(a) -> Nil, emit: fn(String, Json) ->
+ Nil) -> Nil {
use eff <- list.each(effect.all)
eff(dispatch, emit)