ofEffect<Msg> static method

Cmd<Msg> ofEffect<Msg>(
  1. Effect<Msg> effect
)

Gets a reference to the dispatch function. The function that uses it can add between none and any number of messages.

Implementation

static Cmd<Msg> ofEffect<Msg>(Effect<Msg> effect) => Cmd([effect]);