registerSequence method
For internal use only. Registers the sequence with the underlying engine.
Implementation
int registerSequence(Sequence sequence) {
var nextId = 0;
while (sequenceIdMap.containsKey(nextId)) {
nextId++;
}
sequenceIdMap[nextId] = sequence;
return nextId;
}