OSDir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

答复: About the difference between xcom and variable


It seems that variable doesn't remove the duplication if have.

Anyway XCom.get / XCom.set looks like more flexible and it meets the requirement.

Thanks,
Song
________________________________
发件人: Song Liu <songliu@xxxxxxxxxxx>
发送时间: 2018年5月9日 7:22
收件人: dev@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
主题: About the difference between xcom and variable

Hi,

For the cross-task communication, there are two options:
- xcom
- variable

if I have make sure the key of variable is global unique (such uuid), is there any other limitations or cons for using variable instead of xcom ? since that xcom should specify the task_id which is used not very convenient compared with variable.

Any information is appreciated.

Thanks,
Song