Module wpool_process_callbacks

Behaviours: gen_event.

Data Types

event()

event() = handle_init_start | handle_worker_creation | handle_worker_death

Function Index

add_callback_module/2Adds a callback module.
notify/3Sends a notification to all registered callback modules.
remove_callback_module/2Removes a callback module.

Function Details

add_callback_module/2

add_callback_module(EventManager::wpool:name(), Module::module()) -> ok | {error, any()}

Adds a callback module.

notify/3

notify(Event::event(), X2::#{event_manager := any(), term() => term()}, Args::[any()]) -> ok

Sends a notification to all registered callback modules.

remove_callback_module/2

remove_callback_module(EventManager::wpool:name(), Module::module()) -> ok | {error, any()}

Removes a callback module.


Generated by EDoc