Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgreg authored May 21, 2021
1 parent d72eb0e commit efb176d
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,29 @@ end
Sparking a fuse on an action

```elixir
)> Timebomb.start_link
{:ok, #PID<0.200.0>}
> id = Timebomb.spark(fuse: 10_000, bomb: 1+5)
"53b45c7f-8bde-4d24-ae99-a6f215bb7104"
Timebomb.start_link
{:ok, #PID<0.200.0>}

...10 seconds later
Timebomb.spark(fuse: 10_000, bomb: 1+5)

...10 seconds later

6
6
```


Stopping a payload from firing

```elixir
> Timebomb.start_link
{:ok, #PID<0.200.0>}
> id = Timebomb.spark(fuse: 10_000, bomb: 1+5)
"53b45c7f-8bde-4d24-ae99-a6f215bb7104"
> Timebomb.disarm(id)
Payload disarmed
:ok
Timebomb.start_link
{:ok, #PID<0.200.0>}

id = Timebomb.spark(fuse: 10_000, bomb: 1+5)
"53b45c7f-8bde-4d24-ae99-a6f215bb7104"

Timebomb.disarm(id)
Payload disarmed
:ok
```

## TODO:
Expand Down

0 comments on commit efb176d

Please sign in to comment.