surrealdb / surrealdb.rs

SurrealDB driver for Rust
https://surrealdb.com
Apache License 2.0
64 stars 7 forks source link

Require more types to be Sync #6

Closed rushmorem closed 1 year ago

rushmorem commented 1 year ago

What is the motivation?

Make the library easier to use with functions that require parameters to be Sync.

What does this change do?

It ensures that all types used and returned by this client are both Send and Sync.

What is your testing strategy?

I added a futures_are_send_and_sync test case for this.

Is this related to any issues?

It's related to this Discord issue.