Elixir: make hcall and hcast snippets more general
This commit is contained in:
parent
e378404d01
commit
d742cc22b3
2 changed files with 3 additions and 5 deletions
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue