There are two new methods in agent_t class: so_deregister_agent_coop() and so_deregister_agent_normally(). They allow to write more compact and readable code.
Just for a comparison:
Before v.5.4.0
void my_agent::evt_operation_fail()
{
so_environment().deregister_coop(
so_coop_name(),
}
void my_agent::evt_operation_success()
{
so_environment().deregister_coop(
so_coop_name(),
}
Since v.5.4.0
void my_agent::evt_operation_fail()
{
so_deregister_agent_coop(
}
void my_agent::evt_operation_success()
{
so_deregister_agent_coop_normally();
}