像数据库事务rollback
这样的功能,但这适用于所有上述操作,而不仅仅是数据库。例如:
first query for my database
send service to first other server
second query for my database
send service to second other server
if (some condition) {
here need cancel all above operations.
if use database transaction `rollback` function, my database changes are canceled.
There is possible, that cancel service sending (or may be some other, not only database) operations also?
}
有没有可能取消所有以前在php中的操作?