diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lustre/effect.gleam | 8 |
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) |