View Source ExWal.File.Syncing (ex_wal v0.3.0)

Syncing file implementation. This implementation do syncing work automatically after writting. See may_sync function for specific synchronization conditions

Summary

Types

@type t() :: %ExWal.File.Syncing{
  file: ExWal.File.t(),
  name: String.t(),
  offset: non_neg_integer(),
  sync_offset: non_neg_integer()
}

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec get(Agent.name()) :: t()
Link to this function

handle_write(state, bytes)

View Source