Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: cd099983b1
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.286 kB
-module(notify_and_wait_protocol).
-behaviour(ranch_protocol).
-export([start_link/4]).
-export([init/2]).
start_link(_, _, _, [{msg, Msg}, {pid, TestPid}]) ->
Pid = spawn_link(?MODULE, init, [Msg, TestPid]),
{ok, Pid}.
init(Msg, Pid) ->
Pid ! Msg,
receive after 2500 -> ok end.
Jump to Line
Something went wrong with that request. Please try again.