Skip to content

Making the raw TokenSource classes available to coroutines and unitasks#356

Merged
MaxHeimbrock merged 1 commit into
mainfrom
max/adapt-raw-tokensource-to-coroutines-and-unitasks
Jul 16, 2026
Merged

Making the raw TokenSource classes available to coroutines and unitasks#356
MaxHeimbrock merged 1 commit into
mainfrom
max/adapt-raw-tokensource-to-coroutines-and-unitasks

Conversation

@MaxHeimbrock

Copy link
Copy Markdown
Contributor

Background

We want to offer all APIs in the SDK to be compatible with Coroutines, async await and UniTasks. The TokenSourceComponent was compatible, but the underlying TokenSource types were still raw async await.

Changes

What did you do?

  • Change return value for all token sources to TaskYieldInstruction<ConnectionDetails> by wrapping
  • Some cleanup possible in TokenSourceComponent because wrapping is not needed anymore

@MaxHeimbrock
MaxHeimbrock merged commit 3fd1496 into main Jul 16, 2026
15 checks passed
@MaxHeimbrock
MaxHeimbrock deleted the max/adapt-raw-tokensource-to-coroutines-and-unitasks branch July 16, 2026 10:19
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.

2 participants