SharedScalar#

class streaming.base.shared.SharedScalar(dtype, name)[source]#

A numpy scalar of predetermined dtype that lives in shared memory.

Parameters
  • dtype (type) – Dtype of the array.

  • name (str) – Its name in shared memory.

get()[source]#

Get the value.

Returns

Any – The value.

set(value)[source]#

Set the value.

Parameters

value (Any) – The value.