Skip to content

CancellationToken Support #46

Answered by KyryloKuzyk
berkayk asked this question in FAQ
Discussion options

You must be logged in to vote

This was a design decision not to rely on System.Threading namespace. PrimeTween supports async/await simply by adhering to C# language specification. This ensures that PrimeTween can work on platforms that don't support threads, like WebGL.

So I'm afraid that there is no support for CancellationToken. The closest alternative is to use tween/sequence.Stop() if you need to interrupt an animation midway.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by KyryloKuzyk
Comment options

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

@berkayk
Comment options

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