techfort/LokiJS

Is there any way to wait for an insert to complete?

nabils opened this issue · 2 comments

Insert is currently async but it does not return a promise. As far as I can see there is no way to know when an insert of multiple records to a collection has completed? Is this possible?

Thanks

It does seem to be sync actually. Closing this

@nabils Exactly operations above Collections are synchronous. Saving function saveDatabase can be asynchronous and accepts callback.