Current section
Files
Jump to
Current section
Files
lib/snowflake_id/clock.ex
defmodule SnowflakeID.Clock do
@moduledoc """
Behaviour defining the time source used by the SnowflakeID generator.
"""
@callback now_ms(state :: term) :: non_neg_integer()
end