javascript - What is a function that returns a promise called? -


what call function returns promise?

this not start of joke

in javascript community i've seen function returns promise called being "thenable" enough times think "thenable" when i'm coding. it's thenable function.

i name number of reasons:

1) thenable describes functional behaviour. if returns promise, can call "then" on it.

2) it's unique. promises aren't monadic, monad isn't appropriate. "async" more of super class of functions , doesn't describe nature of promise. "thenable" uniquely promisely.

3) it's not repeating promise everywhere, (promissory, promisified, promise function, etc.) approaching circular definition imo. being able google 1 word has 1 specific meaning nice.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -