Subscribe today and get access to all lessons! Plus direct HD downloadfor offline use, member comment forums, and iTunes "podcast" RSS feed.Level up your skills now!
Already subscribed? Sign In
One can throw an error in a generator from the outside with it.throw(). Since all the code inside of a generator is synchronous, we can use the standard try/catch method of handling errors!