View Source locus_filesystem_load (locus v2.3.6)

Loads a file from the filesystem without blocking the caller

Link to this section Summary

Link to this section Types

Specs

Link to this type

event_load_attempt_dismissed/0

View Source

Specs

event_load_attempt_dismissed() :: {load_attempt_dismissed, source()}.
Link to this type

event_load_attempt_started/0

View Source

Specs

event_load_attempt_started() :: {load_attempt_started, source()}.

Specs

msg() ::
    {event, event()} |
    {finished, {success, success()}} |
    {finished, dismissed} |
    {finished, {error, not_found}} |
    {finished, {error, term()}}.

Specs

path() :: nonempty_string().

Specs

source() :: {cache | filesystem, path()}.

Specs

state() :: #state{}.

Specs

success() :: #{modified_on := calendar:datetime(), content := binary()}.