Anoma.Node.Examples.Helpers (Anoma v0.34.0)

I contain generic helper functions to write examples.

Summary

Functions

Given the pid of a logger process, I check return whether the given event was emitted by mnesia or not.

I spawn a new process that will ingest all events from an mnesia table. I return the pid of this process.

Functions

seen_event?(logger_pid, event)

Given the pid of a logger process, I check return whether the given event was emitted by mnesia or not.

table_events_logger(table)

@spec table_events_logger(atom()) :: {:ok, pid()}

I spawn a new process that will ingest all events from an mnesia table. I return the pid of this process.