Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust - Multi threaded read only access to FgbReader and iterate over features #102

Open
apps4uco opened this issue Jan 23, 2021 · 0 comments
Labels

Comments

@apps4uco
Copy link

My use case is to open one FgbReader and have multiple queries with the same FlatGeoBuffer ideally from multiple threads

Again this could just be a documentation issue, looking at the api it did not appear to be possible. If it is possible could it be mentioned in the documentation.

If not maybe the api could be restructured
trait FgbReader
struct HttpFgbReader
struct ReadFgbReader

both create an immutable struct FlatGeoBuffer
FlatGeoBuffer::iter() that can be called multiple times and each time returns a read only iterator that can be sent to a different thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants