Priyansh-Kedia / OpenGraphParser

Open Graph Parser for Android
MIT License
85 stars 15 forks source link

Make the library reentrant and thread-safe #21

Closed Mek101 closed 1 year ago

Mek101 commented 1 year ago

Moves non-immutable variables from class-scope to function scope, and makes the constants shared across all class instances. This allows to make multiple concurrent calls to OpenGraphParser.parse without having different threads and coroutines interfere with each other

Priyansh-Kedia commented 1 year ago

@Mek101 These changes were locally committed and were being tested out currently. Your commit, however, includes moving constants to be shared across instances.

I shall include your changes.

Thank you for your contribution.