groue / GRDB.swift

A toolkit for SQLite databases, with a focus on application development
MIT License
6.61k stars 677 forks source link

Improve the documentation about the scheduling of ValueObservation fetches #1535

Closed groue closed 2 months ago

groue commented 2 months ago

This pull request enhances the ValueObservation documentation with the topics explored in #1529.

In particular, it makes it explicit that ValueObservation, by default, fetches fresh values from the main thread, when the database is modified on the main thread. It also better explains how to configure an observation so that fresh values are never fetched from the main thread.

@kernandreas, thank you for opening #1529 👍