qedus / osmpbf

OpenStreetMap PBF file format parser in Go Lang.
MIT License
141 stars 29 forks source link

Stop decoding of a file #25

Open karsten42 opened 7 years ago

karsten42 commented 7 years ago

Is there a way right now to stop the decoding of a file? As far as I see from looking at the code if you were to stop calling the Decode() method before you went through the entire file there would be dangling go routines that you can't stop. Am I missing something, or is it just not intended so far to stop the decoding prematurely?

AlekSi commented 7 years ago

You are right, it's not implemented yet. Feel free to send a PR if you have time.