Skip to content

Rewriting Async API in ImageExport#321

Merged
kMutagene merged 2 commits intoplotly:devfrom
WhiteBlackGoose:async-fix
Jul 11, 2022
Merged

Rewriting Async API in ImageExport#321
kMutagene merged 2 commits intoplotly:devfrom
WhiteBlackGoose:async-fix

Conversation

@WhiteBlackGoose
Copy link
Copy Markdown
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
testBase64PNG
"Invalid base64 string for Chart.toBase64PNGStringAsync"
}
testCase "Chart.toBase64JPGString" <| fun () ->
Copy link
Copy Markdown
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