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

Ref keys on async methods #242

Merged
merged 6 commits into from
Feb 13, 2020

Conversation

ThiagoT1
Copy link
Contributor

@ThiagoT1 ThiagoT1 commented Feb 4, 2020

Async methods do not support ref Keys, wich are needed when using the unsafe var length strategy.

They could.

@badrishc
Copy link
Contributor

badrishc commented Feb 4, 2020

Ah, nice workaround. I wonder if we can have a quick path for a synchronous operation that avoids calling the helper.

@badrishc
Copy link
Contributor

badrishc commented Feb 4, 2020

public ValueTask<long> EnqueueAsync(byte[] entry, CancellationToken token = default)

@ThiagoT1
Copy link
Contributor Author

ThiagoT1 commented Feb 5, 2020

The same style of nested slow methods was used and its rebased onto master.

@ThiagoT1 ThiagoT1 mentioned this pull request Feb 6, 2020
@badrishc badrishc merged commit bd5ad88 into microsoft:master Feb 13, 2020
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