Comparing version 0.9.5 to 0.9.6
@@ -345,3 +345,3 @@ import { AtomToken, ReadonlySelectorToken, SelectorToken, Transactors, FamilyMetadata, SelectorOptions, ReadonlySelectorOptions, StateToken, ƒn, TransactionUpdate, TransactionOptions, TransactionToken, MutableAtomOptions, MutableAtomToken, MutableAtomFamilyOptions, MutableAtomFamily, AtomFamily, StateUpdate, TimelineUpdate, TimelineOptions, TimelineToken, ReadonlySelectorFamily, SelectorFamily, Logger, AtomOptions, AtomFamilyOptions, ReadonlySelectorFamilyOptions, SelectorFamilyOptions } from 'atom.io'; | ||
declare class Future<T> extends Promise<T> { | ||
private isCanceled; | ||
isCanceled: boolean; | ||
constructor(executor: Promise<T> | ((resolve: (value: T) => void, reject: (reason?: any) => void) => void)); | ||
@@ -348,0 +348,0 @@ cancel(): void; |
@@ -23,2 +23,5 @@ import type { StateUpdate } from "atom.io" | ||
.then((value) => { | ||
if (future.isCanceled) { | ||
return | ||
} | ||
cacheValue(key, value, subject, store) | ||
@@ -25,0 +28,0 @@ subject.next({ newValue: value, oldValue: value }) |
@@ -14,3 +14,3 @@ export type Loadable<T> = Promise<T> | T | ||
export class Future<T> extends Promise<T> { | ||
private isCanceled = false | ||
public isCanceled = false | ||
@@ -17,0 +17,0 @@ public constructor( |
{ | ||
"name": "atom.io", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "Composable and testable reactive data library.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://atom.io.fyi", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1714327
18974