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

Rewriting Async API in ImageExport #321

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Conversation

WhiteBlackGoose
Copy link
Contributor

@WhiteBlackGoose WhiteBlackGoose commented Jul 9, 2022

Short explanation on the workaround.

Plus moved Async API to Task and Task<T> instead of F#'s Async, which makes it more convenient for C# users, and doesn't make it less convenient for F# users (aka pareto improvement 😆 )

Closes #320
Closes #306

@WhiteBlackGoose WhiteBlackGoose marked this pull request as ready for review July 9, 2022 05:58

return
Expect.equal
actual
testBase64PNG
"Invalid base64 string for Chart.toBase64PNGStringAsync"
}
testCase "Chart.toBase64JPGString" <| fun () ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great idea, as we can at least test if the render engine finishes this way. could you add this for the other image formats as well? maybe rename the tests to Chart.toBase64PNGStringAsync terminates etc

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.

[Suggestion] Move the ImageExport's Async API to Task Potential issue with synchronous invokation
2 participants