filmov
tv
What are Generators?

Показать описание
Generator functions are a new way of programming. They allow us to control the execution of a function and even change the state of the function in mid execution.
I'll compare the generator function with a simple analogy; the traffic system. When you drive your car on the road your controlled by the traffic system. Whilst driving you'll eventually come to a stop sign or red light, you yield to allow other traffic to flow. But how does this apply to a generator function? Well in the same way you can stop or tell the generator function to yield; allowing for some other process to take place and come back later to execute more commands in the generator function.
I'll compare the generator function with a simple analogy; the traffic system. When you drive your car on the road your controlled by the traffic system. Whilst driving you'll eventually come to a stop sign or red light, you yield to allow other traffic to flow. But how does this apply to a generator function? Well in the same way you can stop or tell the generator function to yield; allowing for some other process to take place and come back later to execute more commands in the generator function.
Simple explanation of a generator
How electricity is generated (3D Animation - AC&DC Generators)
AC Electrical Generator Basics - How electricity is generated
Generators 101 - What every homeowners needs to know
Magnetism: Motors and Generators
How does an Electric Generator work ⚡ How it works
HOW A DIESEL GENERATOR WORKS -ANIMATION
#62 Python Tutorial for Beginners | Generators
How to power your home during an outage
Electric Generator : One Word Definition : What is Generator ?
Explained: What is a diesel generator?
Building a Generator
What Are Generators and Motors? | Physics in Motion
Electric generator (A.C. & D.C.) | Magnetic effects of current | Khan Academy
Differences between Generator and Motor.
How Does a Generac Home Backup Generator Work?
How to use a generator
What is a Generator? What is an Alternator?
Explained: What are kW, kVAR and kVA on a diesel generator?
Ch 12: What are generators in classical mechanics? | Maths of Quantum Mechanics
INVERTER GENERATOR What's the DIFFERENCE between an INVERTER GENERATOR and a regular generator?
What are Generators?
Diesel Generators Explained (saVRee Snacks #12)
how does a generator work Animation
Комментарии