I tried to add a spec to the handle_cast callback function from the GenServer behavior, but Dialyzer outputs conflicting advice on what the success typing is.
Perhaps what I am doing is pointless as the callback is defined by a spec in the first place. Or perhaps there is a way - if nothing else it gives a reader of the code a better idea of what’s going on.