attach

abstract fun attach(iid: InstanceId)

Attaches an instance to the actor.

Note: Currently, This function must be called from the main(UI) thread. If you call it from a thread other than the main thread, the internal state value will be out of sync.