gen ticker gen_server with callback