From 9581063590e10f5d4a3d6e86d4e2ab4f0e48c4c8 Mon Sep 17 00:00:00 2001 From: Hiroki Uchikawa <31908137+HirokiUchikawa@users.noreply.github.com> Date: Tue, 26 Jun 2018 15:29:10 +0900 Subject: [PATCH] Updated Design: Persistable Context (markdown) --- Design:-Persistable-Context.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Design:-Persistable-Context.md b/Design:-Persistable-Context.md index 655f1dc..a9ffde0 100644 --- a/Design:-Persistable-Context.md +++ b/Design:-Persistable-Context.md @@ -576,6 +576,18 @@ The rules then become: 3. no callback provided, store provided : for a `get` - throw an error. for a `set` - allow it 4. callback provided, store provided : use specific store +
Discussion + +>HU: In rule 3, if an error occurs in asynchronous process in `set`, the error cannot be caught. +How do we handle it? +>1. Ignore the error. +>2. Log the error. +>3. Others +> +>I prefer 1. I think that the caller should decide whether to handle the error or not. + +
+ I think that is a clearer thing to understand than trying to explain why keys now have a structure beyond just being the key to store the data under. #### Exposing persistable context in the TypedInput