usevennv\vapm\Thread;classSharedDataextendsThread {publicfunctiononRun():void {}}SharedData::addShared('This is key Thread', ['data1','data2']); // you can use setShared() method$class =newTestThread();$class->start()->then(function($data) {var_dump(SharedData::getDataMainThread());});