Skip to content

How to resolve editor warnings: Because this call is not awaited #105

Answered by KyryloKuzyk
tpnet asked this question in FAQ
Discussion options

You must be logged in to vote

There are multiple ways to suppress the warning and the easiest one I found is this one: https://stackoverflow.com/a/47790150/1951038

This warning appears because Tween and Sequence are both awaitable types and C# thinks that a user may have forgotten to call await in async method. But now I think whether it was a design mistake on my part to make Tween/Sequence awaitable types instead of introducing a separate ToAwaitable() method that a user should call when they want to await an animation.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tpnet
Comment options

@mwp007
Comment options

Answer selected by KyryloKuzyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
3 participants