Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Async.Start' ? #76

Closed
OnurGumus opened this issue Aug 15, 2020 · 3 comments
Closed

Why Async.Start' ? #76

OnurGumus opened this issue Aug 15, 2020 · 3 comments

Comments

@OnurGumus
Copy link

I am seeing this code:

static member Start' (computation:Async<unit>, ?cancellationToken: CancellationToken) : unit =
            #if FABLE_COMPILER
                Async.StartImmediate (computation, ?cancellationToken=cancellationToken)
            #else
                Async.Start (computation, ?cancellationToken=cancellationToken)
            #endif

But in fable Start and StartImmediate are the same thing.

@dbrattli
Copy link
Owner

Yes, but AsyncRx can be used outside of Fable. Sometimes we want to use Start and not StartImmediate for .NET environments. That could would then trigger a warning with Fable. This is to get rid of that warning.

@dbrattli
Copy link
Owner

FYI: fable-compiler/Fable#1826

@OnurGumus
Copy link
Author

btw there is a plugin for webpack which allows you to suppress warnings by text matching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants