Module ecrn_agent

Agent for cronish testing.

Copyright © Erlware, LLC. All Rights Reserved. This file is provided to you under the BSD License; you may not use this file except in compliance with the License. -------------------------------------------------------------------

Behaviours: gen_server.

Description

Agent for cronish testing

Function Index

cancel/1
get_datetime/1
recalculate/1
set_datetime/3
start_link/2 Starts the server with the apropriate job and the appropriate ref.
validate/1 Validate that a run_when spec specified is correct.

Function Details

cancel/1

cancel(Pid::pid()) -> ok

get_datetime/1

get_datetime(Pid::pid()) -> calendar:datetime()

recalculate/1

recalculate(Pid::pid()) -> ok

set_datetime/3

set_datetime(Pid::pid(), DateTime::calendar:datetime(), Actual::erlcron:seconds()) -> ok

start_link/2

start_link(JobRef::erlcron:job_ref(), Job::erlcron:job()) -> ignore | {error, term()} | {ok, pid()}

Starts the server with the apropriate job and the appropriate ref

validate/1

validate(Spec::erlcron:run_when()) -> valid | invalid

Validate that a run_when spec specified is correct.


Generated by EDoc