~/lightning

Fun with processes

Lightningat Code Elixir LDN 2018 · on Thursday, 2018-08-16· [elixir-and-erlang]
links:none on file
slides:none on file

A GenServer is built to stream large downloads with HTTPoison async_chunk so the whole file never loads into memory and the VM cannot be OOM killed, handling :async_chunk messages to write to a file and closing on :eof. handle_continue starts the request, handle_info processes chunks, and the state holds the target file and URL. Tests inject an injectable HTTP engine, trap exits, send synthetic chunk messages, assert the file contents and that the GenServer stops, and tests pass.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.