mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.35k stars 1.22k forks source link

Make all internal Task SyncContext agnostic #2505

Open pictos opened 2 weeks ago

pictos commented 2 weeks ago

Raised on #2447, the long running task is sensitive to SyncronizationContext, that's devs can force that code execute inside the SyncronizationContext, and probably isn't what we want.

So in order to fix that we need to make sure our tasks will run under the TaskScheduler.Default.

The linked PR is one example, but we should investigate on our code base more places where we may have this issue.

alexbereznikov commented 2 weeks ago

@pictos Yes please assign this one to me