View Source locus_filesystem_load (locus v2.3.12)

Loads a file from the filesystem without blocking the caller

Summary

Types

Link to this type

event_load_attempt_dismissed/0

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

event_load_attempt_started/0

View Source
-type event_load_attempt_started() :: {load_attempt_started, source()}.
-type msg() ::
    {event, event()} |
    {finished, {success, success()}} |
    {finished, dismissed} |
    {finished, {error, not_found}} |
    {finished, {error, term()}}.
-type path() :: file:filename_all().
-type source() :: {cache | filesystem, path()}.
-opaque state()
-type success() :: #{modified_on := calendar:datetime(), content := binary()}.