Use the simpler abortSignal + deadline + value structure instead

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-11-27 12:35:45 +01:00
parent 50d039577a
commit 5ae840e4f6
15 changed files with 622 additions and 548 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/backend-common': patch
---
Added a Context class for the backend, that handles aborting, timeouts, api resolution etc
Added a `Context` type for the backend, that can propagate an abort signal, a deadline, and contextual values through the call stack. The main entrypoint is the `Contexts` utility class that provides a root context creator and commonly used decorators.