http://kuukkanen.i2p/posts/smart-caching
Could also return it directly. return await promise ; }; And the output will look something like this: [ 0.9700939814065737, 0.9700939814065737, 0.9700939814065737, 0.9700939814065737, 0.9700939814065737, 0.9700939814065737, 0.9700939814065737, 0.9700939814065737, 0.9700939814065737, 0.9700939814065737 ] Now we have come full 180° and used the original implementation of the doStuff function to resolve the value. You might start to see the advantage of
this system as the getValue can be any...