Skip to content

[Question]: How to use ExecuteAsync In VB.Net? #2045

@ricfwolff

Description

@ricfwolff

What are you wanting to achieve?

Sorry to bring VB.Net... But some of us still need to work with it. :)

I'm trying to add Polly v8 to a vb.net project, but I'm facing a compiler error when I try to use the ExecuteAsync method:

image

I noticed the ExecuteAsync method returns "ValueTask" instead of "Task". And it looks like that might be the problem...

What code or approach do you have so far?

I also noticed that I can exchange ExecuteAsync for Execute and the compiler will stop complaining about it, but there's another post here on your GitHub explaining that we shouldn't do it, and anyway I tried and my RetryStrategy does not work. :(

Could someone please point me to what I'm doing wrong?

Thank you!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions