Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exstruct/etude
futures for elixir/erlang
https://github.com/exstruct/etude
Last synced: 3 months ago
JSON representation
futures for elixir/erlang
- Host: GitHub
- URL: https://github.com/exstruct/etude
- Owner: exstruct
- Created: 2015-04-20T04:24:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-28T18:45:28.000Z (about 8 years ago)
- Last Synced: 2024-10-07T17:48:59.178Z (4 months ago)
- Language: Elixir
- Homepage: https://hexdocs.pm/etude
- Size: 196 KB
- Stars: 11
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Parallel computation coordination compiler for Erlang/Elixir. (Build Tools)
- fucking-awesome-elixir - etude - Parallel computation coordination compiler for Erlang/Elixir. (Build Tools)
- awesome-elixir - etude - Parallel computation coordination compiler for Erlang/Elixir. (Build Tools)
README
etude [![Build Status](https://travis-ci.org/exstruct/etude.png?branch=master)](https://travis-ci.org/exstruct/etude) [![Hex.pm](https://img.shields.io/hexpm/v/etude.svg)](https://hex.pm/packages/etude)
====futures for elixir/erlang
## Example
```elixir
1..50
|> Enum.map(fn(i) ->
fn ->
# some expensive operation
i
end
|> Etude.async()
|> Etude.retry(1) # retry once if it fails
end)
|> Etude.join(10) # concurrency of 10
|> Etude.map(&Enum.sum/1)
|> Etude.fork!()
```