From 4e40d755f492c4e8824045a7949015aa7b97aa37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 29 Oct 2018 18:26:27 +0100 Subject: [PATCH] Documentation --- README.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/README.md b/README.md index c0fe3bd12..62bbeca21 100644 --- a/README.md +++ b/README.md @@ -6556,21 +6556,6 @@ The `scheduling` property lets you control how fresh values are notified: } ``` -- `unsafe(startImmediately:)`: each value is notified on an unspecified dispatch queue, which may be different for each notified value. - - If `startImmediately` is true, an initial value is notified right upon subscription, synchronously. - - ```swift - // On any queue - var observation = ValueObservation.trackingAll(Player.all()) - observation.scheduling = .unsafe(startImmediately: true) - let observer = try dbQueue.start(observation) { players: [Player] in - // in an unspecified queue - print("fresh players: \(players)") - } - // <- here "fresh players" is already printed. - ``` - - `unsafe(startImmediately:)`: values are not all notified on the same dispatch queue. If `startImmediately` is true, an initial value is notified right upon subscription, synchronously, on the dispatch queue which starts the observation.