Added ability to yield sync! from custom sync class