An open API service indexing awesome lists of open source software.

https://github.com/holsee/elixir_simple_retry_op_demo

Simple example of retrying operation in elixir with a supervised process
https://github.com/holsee/elixir_simple_retry_op_demo

elixir otp

Last synced: 11 months ago
JSON representation

Simple example of retrying operation in elixir with a supervised process

Awesome Lists containing this project

README

          

# RetryDemo

Simple example application to demonstrate how you can perform retry operations
simply in elixir using a supervised process.

## Examples

```elixir
alias RetryDemo.UploadServer
```

Simulate successful upload:
```elixir
UploadServer.upload("some_file.doc")
```

Simulate upload failure with retry logic (any file ending with `.fail`):
```elixir
UploadServer.upload("some_file.fail")
```