You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we are trying to keep BonsaiDb lightweight, it might be interesting to explore creating a lightweight async wrapper. I'm not sure we'd use it within BonsaiDb, but if this wrapper also dealt with the lifetime issues transparently, it could be worth it to switch.
Lifetime issues: spawn_blocking requires 'static lifetimes for the closure being executed. Using something like cryo we can take borrowed arguments and temporary extend the lifetime to static.
While we are trying to keep BonsaiDb lightweight, it might be interesting to explore creating a lightweight async wrapper. I'm not sure we'd use it within BonsaiDb, but if this wrapper also dealt with the lifetime issues transparently, it could be worth it to switch.
Lifetime issues: spawn_blocking requires
'static
lifetimes for the closure being executed. Using something like cryo we can take borrowed arguments and temporary extend the lifetime to static.Refs #30
The text was updated successfully, but these errors were encountered: