Something went wrong. Try again.
my page ollie.earth
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435<!doctype html><html><head> <link href="testing.css" rel="stylesheet"> <script src="testing.js"></script></head>
<body><!-- onmouseleave="unhoverCode('example')" --><div id="example" class="code-switcher" onclick="hoverCode('example')"> <pre><code class="language-gleam"> <span data-self="effect-from">effect.from</span>(fn(<span data-self="dispatch">dispatch</span>) { <span data-self="body"> // try to get a user from the backend, using an email backend.find_user(context.backend, user.email) // wrap the result in our Message type |> BackendReturnedUser // send the message to the lustre runtime |> dispatch</span> }) </code></pre>
<pre><code class="language-gleam"> use <span data-self="dispatch">dispatch</span> <- <span data-self="effect-from">effect.from</span>
<span data-self="body">// try to get a user from the backend, using an email backend.find_user(context.backend, user.email) // wrap the result in our Message type |> BackendReturnedUser // send the message to the lustre runtime |> dispatch</span> </code></pre></div></body></html>