Roblox UtilitiesDevlHub Roblox Documentation

Class

MemStorageConnection

NotCreatableNotReplicated
Inherits
Instance › Object
Memory category
Instances

Represents a live binding created by Bind() on MemStorageService that runs a callback whenever a memory-storage key changes.

A MemStorageConnection is the object returned by the Bind() and BindAndFire() methods of MemStorageService. It wraps the underlying subscription to a memory-storage key: while the connection is retained, the callback supplied at bind time is invoked on each update to that key. The connection is parented to the MemStorageService that created it. Calling MemStorageConnection:Disconnect(), or allowing the object to be destroyed, detaches it and stops any further callbacks.

Methods 1#

DisconnectEnds the binding so its callback no longer runs when the associated memory-storage key changes.PluginSecurity security

Disconnect(): ()#

PluginSecurity security

Detaches the connection from its parent MemStorageService and disconnects the underlying subscription, so the callback supplied when the connection was created is no longer invoked when the key is updated. This is also called automatically when the MemStorageConnection is destroyed. Once disconnected, a connection cannot be re-established; bind again to resume receiving updates.

Returns
  • ()

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed