This allows PDB to be used across await points in async blocks. It also enables Sync access by e.g. wrapping with a Mutex.
This results in just one API-breaking change, where the Source::view trait method must now return a boxed trait object which is Send + Sync. If this breakage is unacceptable, maybe these changes could be behind a feature?
This allows
PDB
to be used across await points in async blocks. It also enablesSync
access by e.g. wrapping with aMutex
.This results in just one API-breaking change, where the
Source::view
trait method must now return a boxed trait object which isSend + Sync
. If this breakage is unacceptable, maybe these changes could be behind a feature?