Due to race conditions, it's possible that the caller to `pmap`/`nolink_apply` might
receive a late reply.
e.g. when a timeout occurred while resource manager was checking a resource's health:
```
19:18:23.084 [error] [data: ..., event_data: {#Reference<0.3247872820.3887857670.131018>, {:normal, [false, true, true, true, true, true]}}, event_type: :info, msg: :ignore_all_other_events, state: :connected]
```
Using an alias and also checking for the race condition in the `after` block (like
[`gen`](
|
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| test | ||
| README.md | ||
| rebar.config | ||
Erlang utility library for EMQX
Overview
emqx_utils is a collection of utility functions for EMQX, organized into
several modules. It provides various functionalities to make it easier to work
with EMQX, such as binary manipulations, maps, JSON en- and decoding, ets table
handling, data conversions, and more.
Features
emqx_utils: unsorted helper functions, formerly known asemqx_misc- NEEDS WORKemqx_utils_api: collection of helper functions for API responsesemqx_utils_binary: binary reverse, join, trim etcemqx_utils_ets: convenience functions for creating and looking up data in ets tables.emqx_utils_json: JSON encoding and decodingemqx_utils_maps: convenience functions for map lookup and manipulation like deep_get etc.
Contributing
Please see our contributing guidelines for information
on how to contribute to emqx_utils. We welcome bug reports, feature requests,
and pull requests.