The Client::memoize function currently returns a Box<dyn std::error::Error> error, which is not thread safe. I assume that this was a mistake, as every other error type in the crate is Box<dyn std::error::Error + Send + Sync> instead.
As a consequence of this, the future returned by Client::poll_for_updates is also not thread-safe, which means that it can, for example, not be spawned in a background task with tokio::spawn.
The
Client::memoize
function currently returns aBox<dyn std::error::Error>
error, which is not thread safe. I assume that this was a mistake, as every other error type in the crate isBox<dyn std::error::Error + Send + Sync>
instead.As a consequence of this, the future returned by
Client::poll_for_updates
is also not thread-safe, which means that it can, for example, not be spawned in a background task withtokio::spawn
.