Base solution for your next web application
Open Closed

AsyncHelper.RunSync(() => ... is there an equivalent help for a synchronous class library from Zero? #8464


User avatar
0
BobIngham created

The title says it all, really. What I wouldn't give for a similar helper which sent something along the lines of:

SyncHelper.RunAsync(() => _happyDaysAreHereAgainManager("sunshine goes here"));

Anyone?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bobingham

    Unfortunately there is no helper like that. You can convert your method to async and return Task.FromResult in your method.