1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
denoland-deno/cli/js/web/streams/symbols.ts

62 lines
3.3 KiB
TypeScript
Raw Normal View History

2020-04-22 10:06:51 -04:00
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// The specification refers to internal slots. In most cases, ECMAScript
// Private Fields are not sufficient for these, as they are often accessed
// outside of the class itself and using a WeakMap gets really complex to hide
// this data from the public, therefore we will use unique symbols which are
// not available in the runtime.
export const abortAlgorithm = Symbol("abortAlgorithm");
export const abortSteps = Symbol("abortSteps");
2020-04-22 10:06:51 -04:00
export const asyncIteratorReader = Symbol("asyncIteratorReader");
export const autoAllocateChunkSize = Symbol("autoAllocateChunkSize");
export const backpressure = Symbol("backpressure");
export const backpressureChangePromise = Symbol("backpressureChangePromise");
2020-04-22 10:06:51 -04:00
export const byobRequest = Symbol("byobRequest");
export const cancelAlgorithm = Symbol("cancelAlgorithm");
export const cancelSteps = Symbol("cancelSteps");
export const closeAlgorithm = Symbol("closeAlgorithm");
2020-04-22 10:06:51 -04:00
export const closedPromise = Symbol("closedPromise");
export const closeRequest = Symbol("closeRequest");
2020-04-22 10:06:51 -04:00
export const closeRequested = Symbol("closeRequested");
export const controlledReadableByteStream = Symbol(
"controlledReadableByteStream"
);
export const controlledReadableStream = Symbol("controlledReadableStream");
export const controlledTransformStream = Symbol("controlledTransformStream");
export const controlledWritableStream = Symbol("controlledWritableStream");
2020-04-22 10:06:51 -04:00
export const disturbed = Symbol("disturbed");
export const errorSteps = Symbol("errorSteps");
export const flushAlgorithm = Symbol("flushAlgorithm");
2020-04-22 10:06:51 -04:00
export const forAuthorCode = Symbol("forAuthorCode");
export const inFlightWriteRequest = Symbol("inFlightWriteRequest");
export const inFlightCloseRequest = Symbol("inFlightCloseRequest");
2020-04-22 10:06:51 -04:00
export const isFakeDetached = Symbol("isFakeDetached");
export const ownerReadableStream = Symbol("ownerReadableStream");
export const ownerWritableStream = Symbol("ownerWritableStream");
export const pendingAbortRequest = Symbol("pendingAbortRequest");
2020-04-22 10:06:51 -04:00
export const preventCancel = Symbol("preventCancel");
export const pullAgain = Symbol("pullAgain");
export const pullAlgorithm = Symbol("pullAlgorithm");
export const pulling = Symbol("pulling");
export const pullSteps = Symbol("pullSteps");
export const queue = Symbol("queue");
export const queueTotalSize = Symbol("queueTotalSize");
export const readable = Symbol("readable");
2020-04-22 10:06:51 -04:00
export const readableStreamController = Symbol("readableStreamController");
export const reader = Symbol("reader");
export const readRequests = Symbol("readRequests");
export const readyPromise = Symbol("readyPromise");
2020-04-22 10:06:51 -04:00
export const started = Symbol("started");
export const state = Symbol("state");
export const storedError = Symbol("storedError");
export const strategyHWM = Symbol("strategyHWM");
export const strategySizeAlgorithm = Symbol("strategySizeAlgorithm");
export const transformAlgorithm = Symbol("transformAlgorithm");
export const transformStreamController = Symbol("transformStreamController");
export const writableStreamController = Symbol("writableStreamController");
export const writeAlgorithm = Symbol("writeAlgorithm");
export const writable = Symbol("writable");
export const writer = Symbol("writer");
export const writeRequests = Symbol("writeRequests");