Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Random tests are needed
The kata design is illogical:
If
asynk
is supposed to be async, it should return aPromise
and be handled in usual ways (.then
/.catch
). Async errors aren't thrown to the current point of execution.A generator returning a
Promise
isn't async code at all; it is a generator, not an async generator. The execution point stays the same scope, and returns to the same place when something isyield
ed/return
ed from the generator.So why is the generator returning
Promise
s? Does the kata author even know how async/await and generators work?