macula_content_sharer_sup (macula v13.3.0)

View Source

Supervises the content sharers, one per pool (macula_content_sharer). A sharer is temporary: it ends with its pool and is not restarted. sharer/1 finds a pool's sharer or starts it; the supervisor serializes the start, so two callers sharing on one pool at once get the same sharer.

Summary

Functions

The sharer of Pool, started if it has none.

Functions

sharer(Pool)

-spec sharer(pid()) -> {ok, pid()} | {error, term()}.

The sharer of Pool, started if it has none.

start_link()

-spec start_link() -> {ok, pid()}.