Skip to content

Instantly share code, notes, and snippets.

View nkezhaya's full-sized avatar

Nick Kezhaya nkezhaya

View GitHub Profile
@nkezhaya
nkezhaya / task1.exs
Created December 13, 2018 01:13 — forked from moklett/task1.exs
Elixir Task - Crash Handling
# This demonstrates that, when using async/await, a crash in the task will crash the caller
defmodule Tasker do
def good(message) do
IO.puts message
end
def bad(message) do
IO.puts message
raise "I'm BAD!"
end