On xCode 11 beta the methods runExclusiveWithState and handleEventExclusiveWithState create a race condition on the property shouldCallInitial and exclusiveCount by calling beginExclusivity(). Found that this is occurs when the signal has not terminated and runExclusiveWithState gets called. My proposed solution is to add a lock before the block accessing shouldCallInitial on line 247 of Signal+Construction.swift
On xCode 11 beta the methods
runExclusiveWithState
andhandleEventExclusiveWithState
create a race condition on the propertyshouldCallInitial
andexclusiveCount
by callingbeginExclusivity()
. Found that this is occurs when the signal has not terminated andrunExclusiveWithState
gets called. My proposed solution is to add a lock before the block accessingshouldCallInitial
on line 247 ofSignal+Construction.swift