Elixir: make hcall and hcast snippets more general

This commit is contained in:
Van-Huynh Le 2019-04-13 09:49:17 +02:00
parent e378404d01
commit d742cc22b3
2 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,6 @@
# name: hcall
# key: hcall
# --
def handle_call($1, _from, state) do
reply = $0
{:reply, reply, state}
def handle_call($1, _from, ${2:state}) do
$0
end

View File

@ -2,7 +2,6 @@
# name: hcast
# key: hcast
# --
def handle_cast($1, state) do
def handle_cast($1, ${2:state}) do
$0
{:noreply, state}
end