Electric.Shapes.Monitor.RefCounter (electric v1.1.0)
View SourceTracks active uses of shapes, the number of readers (and their pids) and the active writer.
Allows for registering callback messages when all readers of a shape have terminated or when some other process has terminated.
Uses Electric.Shapes.Monitor.CleanupTaskSupervisor
to trigger an
unsafe_cleanup!
of shape storage once the shape supervisor has terminated.
See Electric.Shapes.Monitor
for usage.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type shape_handle() :: Electric.ShapeCache.shape_handle()
@type stack_id() :: Electric.stack_id()