bigtestjs / server

All BigTest development has moved to https://github.com/thefrontside/bigtest
https://github.com/thefrontside/bigtest
2 stars 1 forks source link

Unwrap generator-based operations #61

Closed cowboyd closed 4 years ago

cowboyd commented 4 years ago

When effection first started out, only generator functions were recognized as operations, not the generators themselves. Nowadays, we know that it's actually get Generator itself that is the heart of the operation, and that generator function is just a function that returns an Operation (the generator).

As such, there is no need to have a function that returns a generator function. We can just use a function that returns a generator.... or a generator function.

This change makes all of these operation generating functions directly into generators.