Litedb: Why no async methods?

Created on 26 Aug 2019  路  5Comments  路  Source: mbdavid/LiteDB

Why not implement async Task in the read and writes? e.g. InsertAsync() or FindByIdAsync()

BTW, love the package! 馃憤

question

Most helpful comment

Hi @clement128,

Was not possible to implement in v5 because was pretty complex at the moment. But now, with v5 released It's on plans no v.5.5 (next "major" upgrade)

All 5 comments

Hi @pvanroos, I was planning to create v5 with only async methods call (useful to use ReadAsync from Stream) but I had a problem: locks works in threads (ReadWriteLockSlim) and has no support for async operations. To works with async locks needs another 3th party lib and v5 still no dependency.

hi @mbdavid any plan to support async methods?

BTW thanks for the great works

Hi @clement128,

Was not possible to implement in v5 because was pretty complex at the moment. But now, with v5 released It's on plans no v.5.5 (next "major" upgrade)

Here is an Aysnc wrapper for liteDb https://github.com/mlockett42/litedb-async

Was this page helpful?
0 / 5 - 0 ratings

Related issues

furesoft picture furesoft  路  4Comments

kuiperzone picture kuiperzone  路  4Comments

thecodrr picture thecodrr  路  4Comments

josephinenewbie picture josephinenewbie  路  3Comments

muhamad picture muhamad  路  3Comments