Return the session id directly #3
If searchFederated is called twice quickly, the 'start' events for both searches may arrive out of order, so you still can't know which events belong to the last call to searchFederated. By returning the session id directly from searchFederated, we can ignore incoming events having a different (old) session id.
You're right, and this is an elegant solution. Thanks. I will merge this.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?