sanctuary

Execute Fluture task in middle of Sanctuary pipe

半城伤御伤魂 提交于 2020-01-06 05:28:19
问题 I have a pipe like this: S.pipe([ getRequestFile, // not async S.chain(saveTemporary), // not async S.chain(copyImageToPublicPath), // async S.chain(copyFileToPath), // async S.chain(someLoggingFunction), // not async S.chain(sendResponse), // not async ]); There are 2 async functions in middle of this pipe. I want to await for copyImageToPublicPath and then await for copyFileToPath and then continue the normal flow After some search I found that there is Future.tryP function for doing async

Custom equality semantics for Immutable.js data structures

风格不统一 提交于 2019-12-06 23:27:41
问题 I would like Sanctuary to provide Fantasy Land -compatible Map and Set types with value-based equality semantics. Ideally these values would be immutable, though this is not critical since Sanctuary would provide pure functions for merging and otherwise manipulating these values. I would love to leverage the good work done by the Immutable.js team; I imagine implementing persistent data structures takes considerable effort! The API provided by Immutable.js is of little importance since