diff --git a/classes/Cache.html b/classes/Cache.html index 71e4811..325ede3 100644 --- a/classes/Cache.html +++ b/classes/Cache.html @@ -1,4 +1,4 @@ -Cache | thingies

Class Cache<T>

Type Parameters

  • T

Constructors

constructor +Cache | thingies

Class Cache<T>

Type Parameters

  • T

Constructors

Properties

Constructors

Properties

entries: number = 0
evictionTime: number = 20000
gcPeriod: number = 30000
map: Map<string, CacheEntry<T>> = ...
maxEntries: number = 100000
method: ((key) => Promise<T>) = ...

Type declaration

    • (key): Promise<T>
    • Parameters

      • key: string

      Returns Promise<T>

timer: any
ttl: number = 10000

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

entries: number = 0
evictionTime: number = 20000
gcPeriod: number = 30000
map: Map<string, CacheEntry<T>> = ...
maxEntries: number = 100000
method: ((key) => Promise<T>) = ...

Type declaration

    • (key): Promise<T>
    • Parameters

      • key: string

      Returns Promise<T>

timer: any
ttl: number = 10000

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/Defer.html b/classes/Defer.html index 3969558..2066124 100644 --- a/classes/Defer.html +++ b/classes/Defer.html @@ -2,8 +2,8 @@ promise at any time.

const future = new Defer();

future.promise.then(value => console.log(value));

future.resolve(123);
-

Type Parameters

Constructors

Type Parameters

  • T

Constructors

Properties

Constructors

Properties

promise: Promise<T> = ...
reject: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: any

      Returns void

resolve: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: T

      Returns void

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

promise: Promise<T> = ...
reject: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: any

      Returns void

resolve: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: T

      Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/FanOut.html b/classes/FanOut.html index 0b6e019..32ab4dd 100644 --- a/classes/FanOut.html +++ b/classes/FanOut.html @@ -1,5 +1,5 @@ -FanOut | thingies

Class FanOut<D>

Type Parameters

  • D

Constructors

constructor +FanOut | thingies

Class FanOut<D>

Type Parameters

  • D

Constructors

Properties

Methods

Constructors

Properties

listeners: Set<FanOutListener<D>> = ...

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

listeners: Set<FanOutListener<D>> = ...

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/LruMap.html b/classes/LruMap.html index 9f83542..43f4426 100644 --- a/classes/LruMap.html +++ b/classes/LruMap.html @@ -1,4 +1,4 @@ -LruMap | thingies

Class LruMap<K, V>

Type Parameters

  • K
  • V

Hierarchy (view full)

Constructors

constructor +LruMap | thingies

Class LruMap<K, V>

Type Parameters

  • K
  • V

Hierarchy (view full)

Constructors

Properties

[toStringTag] limit size @@ -14,14 +14,14 @@ set values groupBy -

Constructors

Properties

[toStringTag]: string
limit: number = Infinity
size: number

Returns

the number of elements in the Map.

+

Constructors

Properties

[toStringTag]: string
limit: number = Infinity
size: number

Returns

the number of elements in the Map.

[species]: MapConstructor

Methods

  • Returns an iterable of entries in the map.

    Returns IterableIterator<[K, V]>

  • Returns void

  • Parameters

    • key: K

    Returns boolean

    true if an element in the Map existed and has been removed, or false if the element does not exist.

  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[K, V]>

  • Executes a provided function once per each key/value pair in the Map, in insertion order.

    -

    Parameters

    • callbackfn: ((value, key, map) => void)
        • (value, key, map): void
        • Parameters

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

  • Parameters

    • key: K

    Returns boolean

    boolean indicating whether an element with the specified key exists or not.

    +

Parameters

Returns void

Constructors

Properties

initState: (() => S)

Type declaration

    • (): S
    • Returns S

itemLimit: number = 100

State will be flushed when it reaches this number of items.

+
length: number = 0
onFlush: ((state) => void) = ...

Method that will be called when state is flushed.

+

Type declaration

    • (state): void
    • Parameters

      • state: S

      Returns void

reducer: ((state, item) => S)

Type declaration

    • (state, item): S
    • Parameters

      • state: S
      • item: I

      Returns S

state: S = ...
timeLimit: number = 5_000

State will be flushed after this many milliseconds.

+
timer: any = null

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/codeMutex.html b/functions/codeMutex.html index 72f6820..2a146fe 100644 --- a/functions/codeMutex.html +++ b/functions/codeMutex.html @@ -1,3 +1,3 @@ codeMutex | thingies

Function codeMutex

  • Executes only one instance of give code at a time. If other calls come in in parallel, they get resolved to the result of the ongoing execution.

    -

    Type Parameters

    • T

    Returns ((code) => Promise<T>)

      • (code): Promise<T>
      • Parameters

        Returns Promise<T>

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Returns ((code) => Promise<T>)

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/concurrency.html b/functions/concurrency.html index 41379ab..3fbb061 100644 --- a/functions/concurrency.html +++ b/functions/concurrency.html @@ -1,2 +1,2 @@ concurrency | thingies

Function concurrency

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns (<T>(code) => Promise<T>)

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/concurrencyDecorator.html b/functions/concurrencyDecorator.html index faf623b..d0d1e3d 100644 --- a/functions/concurrencyDecorator.html +++ b/functions/concurrencyDecorator.html @@ -1,4 +1,4 @@ concurrencyDecorator | thingies

Function concurrencyDecorator

  • A class method decorator that limits the concurrency of the method to the given number of parallel executions. All invocations are queued and executed in the order they were called.

    -

    Type Parameters

    • This
    • Args extends any[]
    • Return

    Parameters

    • limit: number

    Returns ((target, context?) => ((this, ...args) => Promise<Return>))

      • (target, context?): ((this, ...args) => Promise<Return>)
      • Parameters

        • target: ((this, ...args) => Promise<Return>)
        • Optional context: ClassMethodDecoratorContext<This, ((this, ...args) => Promise<Return>)>

        Returns ((this, ...args) => Promise<Return>)

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Parameters

Returns ((target, context?) => ((this, ...args) => Promise<Return>))

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/dataUri.html b/functions/dataUri.html index 01e5cb9..fac0c3a 100644 --- a/functions/dataUri.html +++ b/functions/dataUri.html @@ -2,4 +2,4 @@

Parameters

Returns string

The data URI.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/decode64.html b/functions/decode64.html index c1fe6c9..7c5a1e6 100644 --- a/functions/decode64.html +++ b/functions/decode64.html @@ -1 +1 @@ -decode64 | thingies

Function decode64

Generated using TypeDoc

\ No newline at end of file +decode64 | thingies

Function decode64

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/encode64.html b/functions/encode64.html index f7566af..c2e0526 100644 --- a/functions/encode64.html +++ b/functions/encode64.html @@ -1 +1 @@ -encode64 | thingies

Function encode64

Generated using TypeDoc

\ No newline at end of file +encode64 | thingies

Function encode64

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/go.html b/functions/go.html index 198d0f7..67800ce 100644 --- a/functions/go.html +++ b/functions/go.html @@ -1,2 +1,2 @@ go | thingies

Function go

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Parameters

Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/hash.html b/functions/hash.html index 956f0a3..4a533a6 100644 --- a/functions/hash.html +++ b/functions/hash.html @@ -1 +1 @@ -hash | thingies

Function hash

Generated using TypeDoc

\ No newline at end of file +hash | thingies

Function hash

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/loadCss.html b/functions/loadCss.html index 4d6905a..02d8bbf 100644 --- a/functions/loadCss.html +++ b/functions/loadCss.html @@ -1 +1 @@ -loadCss | thingies

Function loadCss

Generated using TypeDoc

\ No newline at end of file +loadCss | thingies

Function loadCss

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/makeXorShift32.html b/functions/makeXorShift32.html index 51b6802..84042a1 100644 --- a/functions/makeXorShift32.html +++ b/functions/makeXorShift32.html @@ -1 +1 @@ -makeXorShift32 | thingies

Function makeXorShift32

Generated using TypeDoc

\ No newline at end of file +makeXorShift32 | thingies

Function makeXorShift32

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/mutex.html b/functions/mutex.html index 740d457..c3a2918 100644 --- a/functions/mutex.html +++ b/functions/mutex.html @@ -2,4 +2,4 @@ returns the result of the ongoing execution.

mutex can be used as a class method decorator or a higher order function.

-

Type Parameters

Parameters

Returns ((this, ...args) => Promise<Return>)

Generated using TypeDoc

\ No newline at end of file +

Type Parameters

Parameters

Returns ((this, ...args) => Promise<Return>)

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/normalizeEmail.html b/functions/normalizeEmail.html index cfd7871..573fd65 100644 --- a/functions/normalizeEmail.html +++ b/functions/normalizeEmail.html @@ -10,4 +10,4 @@

will be normalized to

michalloler@gmail.com
 
-

Parameters

Returns string

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns string

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/of.html b/functions/of.html index f49c393..535547a 100644 --- a/functions/of.html +++ b/functions/of.html @@ -5,4 +5,4 @@
  • Third entry is a boolean, truthy if promise was resolved and falsy if rejected.
  • Type Parameters

    Parameters

    Returns Promise<[undefined | T, undefined | E, boolean]>

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Promise<[undefined | T, undefined | E, boolean]>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/once.html b/functions/once.html index f4034f7..e335f1d 100644 --- a/functions/once.html +++ b/functions/once.html @@ -1,3 +1,3 @@ once | thingies

    Function once

    • A class method decorator that limits a method to be called only once. All subsequent calls will return the result of the first call.

      -

      Type Parameters

      • This
      • Args extends any[]
      • Return

      Parameters

      • fn: ((this, ...args) => Return)
      • Optional context: ClassMethodDecoratorContext<This, ((this, ...args) => Return)>

      Returns ((this, ...args) => Return)

    Generated using TypeDoc

    \ No newline at end of file +

    Type Parameters

    Parameters

    Returns ((this, ...args) => Return)

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/promiseMap.html b/functions/promiseMap.html index 758ed6d..cb19abe 100644 --- a/functions/promiseMap.html +++ b/functions/promiseMap.html @@ -1,3 +1,3 @@ promiseMap | thingies

    Function promiseMap

    • Creates promises of a list of values. Resolves all promises and returns an array of resolved values.

      -

      Parameters

      • values: any[]
      • onValue: ((value) => Promise<unknown>)
          • (value): Promise<unknown>
          • Parameters

            • value: unknown

            Returns Promise<unknown>

      • onError: ((error?, value?, index?) => void) = noop
          • (error?, value?, index?): void
          • Parameters

            • Optional error: unknown
            • Optional value: unknown
            • Optional index: number

            Returns void

      Returns Promise<any>

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns Promise<any>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/randomStr.html b/functions/randomStr.html index 56ac679..fb2c38a 100644 --- a/functions/randomStr.html +++ b/functions/randomStr.html @@ -1 +1 @@ -randomStr | thingies

    Function randomStr

    Generated using TypeDoc

    \ No newline at end of file +randomStr | thingies

    Function randomStr

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/tick.html b/functions/tick.html index 971a2ef..2830388 100644 --- a/functions/tick.html +++ b/functions/tick.html @@ -1 +1 @@ -tick | thingies

    Function tick

    Generated using TypeDoc

    \ No newline at end of file +tick | thingies

    Function tick

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/until.html b/functions/until.html index ea2c13a..37b278b 100644 --- a/functions/until.html +++ b/functions/until.html @@ -1 +1 @@ -until | thingies

    Function until

    • Parameters

      • check: (() => boolean | Promise<boolean>)
          • (): boolean | Promise<boolean>
          • Returns boolean | Promise<boolean>

      • pollInterval: number = 1

      Returns Promise<void>

    Generated using TypeDoc

    \ No newline at end of file +until | thingies

    Function until

    • Parameters

      • check: (() => boolean | Promise<boolean>)
          • (): boolean | Promise<boolean>
          • Returns boolean | Promise<boolean>

      • pollInterval: number = 1

      Returns Promise<void>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/xorShift32.html b/functions/xorShift32.html index 36d59c6..09fc03c 100644 --- a/functions/xorShift32.html +++ b/functions/xorShift32.html @@ -1 +1 @@ -xorShift32 | thingies

    Function xorShift32

    Generated using TypeDoc

    \ No newline at end of file +xorShift32 | thingies

    Function xorShift32

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/CacheEntry.html b/interfaces/CacheEntry.html index 1a84678..133e6fd 100644 --- a/interfaces/CacheEntry.html +++ b/interfaces/CacheEntry.html @@ -1,3 +1,3 @@ -CacheEntry | thingies

    Interface CacheEntry<T>

    interface CacheEntry<T> {
        t: number;
        value: T;
    }

    Type Parameters

    • T

    Properties

    t +CacheEntry | thingies

    Interface CacheEntry<T>

    interface CacheEntry<T> {
        t: number;
        value: T;
    }

    Type Parameters

    • T

    Properties

    Properties

    t: number
    value: T

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    t: number
    value: T

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/Code.html b/types/Code.html index da67a1d..f7c81ad 100644 --- a/types/Code.html +++ b/types/Code.html @@ -1 +1 @@ -Code | thingies

    Type alias Code<T>

    Code<T>: (() => Promise<T>)

    Type Parameters

    • T = unknown

    Type declaration

      • (): Promise<T>
      • Returns Promise<T>

    Generated using TypeDoc

    \ No newline at end of file +Code | thingies

    Type alias Code<T>

    Code<T>: (() => Promise<T>)

    Type Parameters

    • T = unknown

    Type declaration

      • (): Promise<T>
      • Returns Promise<T>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/FanOutListener.html b/types/FanOutListener.html index 5f3639a..35efb37 100644 --- a/types/FanOutListener.html +++ b/types/FanOutListener.html @@ -1 +1 @@ -FanOutListener | thingies

    Type alias FanOutListener<D>

    FanOutListener<D>: ((data) => void)

    Type Parameters

    • D

    Type declaration

      • (data): void
      • Parameters

        • data: D

        Returns void

    Generated using TypeDoc

    \ No newline at end of file +FanOutListener | thingies

    Type alias FanOutListener<D>

    FanOutListener<D>: ((data) => void)

    Type Parameters

    • D

    Type declaration

      • (data): void
      • Parameters

        • data: D

        Returns void

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/FanOutUnsubscribe.html b/types/FanOutUnsubscribe.html index 0cfb96d..47507da 100644 --- a/types/FanOutUnsubscribe.html +++ b/types/FanOutUnsubscribe.html @@ -1 +1 @@ -FanOutUnsubscribe | thingies

    Type alias FanOutUnsubscribe

    FanOutUnsubscribe: (() => void)

    Type declaration

      • (): void
      • Returns void

    Generated using TypeDoc

    \ No newline at end of file +FanOutUnsubscribe | thingies

    Type alias FanOutUnsubscribe

    FanOutUnsubscribe: (() => void)

    Type declaration

      • (): void
      • Returns void

    Generated using TypeDoc

    \ No newline at end of file