From 6a06e111ebfbb8bbf69f4539863ae2d5d62794f9 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 14 Jul 2024 21:44:21 +0200 Subject: io: remove readablestream it was never implemented --- src/io/readablestream.nim | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/io/readablestream.nim (limited to 'src/io') diff --git a/src/io/readablestream.nim b/src/io/readablestream.nim deleted file mode 100644 index 8269f1dc..00000000 --- a/src/io/readablestream.nim +++ /dev/null @@ -1,32 +0,0 @@ -#TODO.... - -type - UnderlyingSourceStartCallback = proc(controller: ReadableStreamController): - Option[JSValue] # may be undefined! - UnderlyingSourcePullCallback = proc(controller: ReadableStreamController): - EmptyPromise - UnderlyingSourceCancelCallback = proc(reason = none(JSValue)): EmptyPromise - - ReadableStreamType = enum - BYOB = "byob" - - UnderlyingSource* = object - start*: Option[UnderlyingSourceStartCallback] - pull*: Option[UnderlyingSourcePullCallback] - cancel*: Option[UnderlyingSourcePullCallback] - #TODO mark real name being type - ctype*: Option[ReadableStreamType] - - QueuingStrategySize = proc(chunk: JSValue): float64 # unrestricted - - QueuingStrategy* = object - highWaterMark*: float64 # unrestricted - size*: QueuingStrategySize - - ReadableStream* = object - underlyingSource: UnderlyingSource - -proc newReadableStream(underlyingSource = none(UnderlyingSource); - strategy = none(QueuingStrategySize)): ReadableStream = - let this = ReadableStream() - discard -- cgit