memory

Shared memory.

License:
  • Apache-2.0
Source:

Methods

(inner) share(ext)

Extend shared memory with keys from provided extension object. It throws when shared memory already have those keys.

Source:
Parameters:
Name Type Description
ext

extension object

Returns:

extended memory object

(inner) useMemory(f) → {*}

Invoke function argument with a reference to shared memory.

Source:
Parameters:
Name Type Description
f

function to invoke on a shared memory

Returns:
Type:
*