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

fix: add support for locking behind mutex #20

Merged
merged 1 commit into from Aug 4, 2023
Merged

fix: add support for locking behind mutex #20

merged 1 commit into from Aug 4, 2023

Conversation

cschear
Copy link
Contributor

@cschear cschear commented May 24, 2023

Fairly new to rust so not sure if this change is appropriate, or if there would be an appetite for it.
Currently we are using the library with some work that is happening in a spawned thread. It would be nice if we could share the spinner instance with the thread - as work gets done we can update the text on the fly. Because several function do not take self as a reference this makes it not possible to send the instance to the spawned thread.

@ad4mx ad4mx changed the base branch from main to 0.8 August 4, 2023 12:55
@ad4mx
Copy link
Owner

ad4mx commented Aug 4, 2023

Hi, (sorry for the insanely late response)
I don't see any issues with this. Thanks for the PR!

@ad4mx ad4mx merged commit 8a7bd76 into ad4mx:0.8 Aug 4, 2023
ad4mx added a commit that referenced this pull request Aug 4, 2023
* fix: add support for locking behind mutex (#20)
---------

Co-authored-by: Christopher Schear <chris@schear.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants