DataPortal methods: asynchronous or synchronous? #3619
Unanswered
ecaldentey
asked this question in
Questions
Replies: 1 comment
-
It depends on whether you are using any async API calls in your code. You can implement a data portal operation method that returns [Fetch]
private void Fetch(...)
{
// you can use sync APIs here
}
[Fetch]
private async Task FetchAsync(...)
{
// you can use the await keyword here
} Either way, your code generally has the same complexity, it is just a question of whether you need to use the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I wanted to ask if it is advisable to program DataPortal methods on the server side asynchronously, or if it's a complication that isn't justified?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions