Skip to content

Releases: YannickDot/Taskorama

v2.0.0

10 May 11:24
Compare
Choose a tag to compare

Breaking change in 2.0.0 !

I decided to make Taskorama compatible with other fantasyland-friendly 🦄 🌈 Task libraries by embracing the same convention in arguments order :

const t = Task(function(resolve, reject) {})

becomes

// Arguments are flipped now - the 'reject' callback is the first argument
const t = Task(function(reject, resolve) {}) 

If you want to keep using the old argument order (maybe you're used to manipulate Promises), you can use the Task.flippedArgs constructor :

// This works perfectly ! 
const t = Task.flippedArgs(function(resolve, reject) {})

😉