Module ar_timestamp.erl¶
Function Index¶
cache/1* | Cache the current timestamp from Arweave. |
get/0 | Get the current timestamp from the server, starting the server if it isn't already running. |
refresher/1* | Refresh the timestamp cache periodically. |
spawn_server/0* | Spawn a new server and its refresher. |
start/0 | Check if the server is already running, and if not, start it. |
Function Details¶
cache/1 *¶
cache(Current) -> any()
Cache the current timestamp from Arweave.
get/0¶
get() -> any()
Get the current timestamp from the server, starting the server if it isn't already running.
refresher/1 *¶
refresher(TSServer) -> any()
Refresh the timestamp cache periodically.
spawn_server/0 *¶
spawn_server() -> any()
Spawn a new server and its refresher.
start/0¶
start() -> any()
Check if the server is already running, and if not, start it.