midas_beam
Run Midas effects and tasks on the BEAM.
gleam add midas_beam@1import midas/task as t
import midas/beam
/// Portable task definition that makes a web request and request some random bytes.
pub fn task(){
let request = todo as "create a request"
use response <- t.do(t.fetch(request))
use random <- t.do(t.strong_random(10))
t.done("task finished")
}
/// Run the task.
pub fn main() {
beam.run(task())
}Further documentation can be found at https://hexdocs.pm/midas_beam.
Development
gleam run # Run the project
gleam test # Run the tests