Skip to content

Add Sendable protocol to TaskQueue#3

Draft
theisegeberg wants to merge 1 commit intorickymohk:mainfrom
theisegeberg:main
Draft

Add Sendable protocol to TaskQueue#3
theisegeberg wants to merge 1 commit intorickymohk:mainfrom
theisegeberg:main

Conversation

@theisegeberg
Copy link

@theisegeberg theisegeberg commented Mar 2, 2025

In many cases it's nice to create a global public TaskQueue, and for that it needs to be sendable.

I know this is a "cold PR", but I just stumbled upon your solution to this problem after making my own semaphore based version. And I liked yours a lot better, but ran straight into needing to make it sendable to support a global variable :-) - great work BTW, thank your for taking our time to polish and finish this.

It's not complete in any way, so this is a draft :-) I didn't want to just hi-jack with a ton of code.

@theisegeberg theisegeberg marked this pull request as draft March 2, 2025 11:08
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.

1 participant

Comments