studio54 v0.4.2 Studio54.Db
Link to this section Summary
Functions
Subscribe to an incomming message event
retire message events that has a timeout, not permement and expired
Link to this section Functions
Link to this function
add_incomming_message(sender)
Link to this function
add_message_event(target, timeout, module, function, match \\ nil, ret_if_no_match \\ true, args \\ [], timeout_module \\ nil, timeout_function \\ nil, timeout_args \\ [])
Subscribe to an incomming message event.
Example:
```
iex> Studio54.Db.add_message_event 98912028207, 60, IO, :inspect, "[\d]{5}", true, []
{:ok, idx}
## with expire call backs:
iex> Studio54.Db.add_message_event("989120228207", 30,
Studio54, :test_func, "pink2", true, [:cool], IO, :inspect, [:oh_sorry])
```
Link to this function
event_process(events, m, idx)
Link to this function
get_active_events()
Link to this function
get_last_message_body_from(sender)
Link to this function
get_last_message_from(sender)
Link to this function
get_message(idx)
Link to this function
get_message_event(idx)
Link to this function
get_messages_from(sender)
Link to this function
get_state()
Link to this function
is_active_event(idx)
Link to this function
read_incomming_messages_from(sender)
Link to this function
retire_expired_message_events()
retire message events that has a timeout, not permement and expired.
Link to this function
retire_message_event(idx)
Link to this function
set_state(state)
Link to this function
update_message_event_message(idx, message_idx)
Link to this function
update_message_event_result(idx, result)