From 561ca3e606fb1444364095e9e984956c845d7e02 Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 29 Mar 2024 17:29:03 +0100 Subject: [PATCH] fix: stream example --- examples/stream.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/stream.exs b/examples/stream.exs index c1225f9..3fb2a64 100644 --- a/examples/stream.exs +++ b/examples/stream.exs @@ -36,5 +36,8 @@ defmodule QueryLoop do end end -QueryLoop.query(socket) +Task.start_link(fn -> + QueryLoop.query(socket) +end) + Process.sleep(15000)