Yield context periodically.