View Source locus_filesystem_load (locus v2.3.11)
Loads a file from the filesystem without blocking the caller
Summary
Types
-type event() :: event_load_attempt_started() | event_load_attempt_dismissed().
-type event_load_attempt_dismissed() :: {load_attempt_dismissed, source()}.
-type event_load_attempt_started() :: {load_attempt_started, source()}.
-type path() :: file:filename_all().
-type source() :: {cache | filesystem, path()}.
-opaque state()
-type success() :: #{modified_on := calendar:datetime(), content := binary()}.