Skip to content

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Jan 4, 2025

@yaakov-h what do you think will this work?

Fixes #1464

@yaakov-h
Copy link
Member

yaakov-h commented Jan 5, 2025

I don't like blocking waiting for the task, but since we want thread affinity.. 🤔

Might be worth converting all callbacks to ValueTask.

@xPaw
Copy link
Member Author

xPaw commented Jan 5, 2025

I don't like blocking waiting for the task

Non task callbacks already block, so not sure what difference that makes here.

Might be worth converting all callbacks to ValueTask.

How would that look?

@xPaw xPaw force-pushed the async-callbacks branch from 4c70d61 to 5dcf77a Compare January 5, 2025 12:03
@xPaw
Copy link
Member Author

xPaw commented Jan 29, 2025

I don't see how ValueTask can be applied here, so I would stick with Task.

@xPaw xPaw requested a review from yaakov-h June 4, 2025 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CallbackMgr: Allow subscribing to callbacks that return Task
2 participants