We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea2a0e commit c901e17Copy full SHA for c901e17
1 file changed
src/Node.gren
@@ -9,6 +9,7 @@ effect module Node where { subscription = NodeSub } exposing
9
, SimpleProgram
10
, defineSimpleProgram
11
, endSimpleProgram
12
+ , endSimpleProgramWithCmd
13
--
14
, Program
15
, ProgramConfiguration
@@ -373,6 +374,13 @@ endSimpleProgram finalTask =
373
374
Internal.Init.Task (Task.succeed <| Task.execute finalTask)
375
376
377
+{-| Similar to [endSimpleProgram](#endSimpleProgram), but takes a `Cmd` instead of a `Task`.
378
+-}
379
+endSimpleProgramWithCmd : Cmd a -> Init.Task (Cmd a)
380
+endSimpleProgramWithCmd cmd =
381
+ Internal.Init.Task (Task.succeed cmd)
382
+
383
384
-- EXIT
385
386
0 commit comments