jaide (formerly eccentric-j)

Results 111 comments of jaide (formerly eccentric-j)

@vqvu Hmm I'm not sure I have the capabilities of reopening this ticket.

I agree that is odd behavior on github's part. Perhaps it was intended to be used more of a bug report workflow where a bug is reported, a fix is...

I think the built-in orgmode edit special does indent correctly, but not sure how applicable to this tool it is: https://github.com/nvim-orgmode/orgmode/blob/313ce5a04e7fc3d677ad906a94fc49c1f54d1572/lua/orgmode/objects/edit_special/init.lua FeMaco is way nicer though. The official just opens...

I took a quick look at your test repo and saw you are using highland 3 which if I recall, is missing some work around when resources are destroyed which...

Ok that's at least progress. I see your updated test repo and the use of toPromise. You're right that `close` and `finish` may not fire but is `end` firing? Also,...

Thanks for that info! I'm going to dig in today and see if I can pinpoint if it's a highland issue specifically or something with the batched mongo stream. As...

Made some progress. ```js async function main () { const client = await MongoClient.connect(url, opts); const db = client.db("test"); const col = db.collection("test"); await col.removeMany(); await col.insertMany(docs); // This function...

Tried `_(mockMongoStream(docs))` with a custom subclass of `Stream.Readable` and it worked without issue https://travis-ci.com/eccentric-j/highland-batch-repro/builds/151668807. I also tried `_(_(docs).toNodeReadable({ objectMode: true }))` and it also worked without issue https://travis-ci.com/eccentric-j/highland-batch-repro/builds/151663566. This has...

I don't anticipate that will work as intended, but I could be wrong. Instead I would structure it like this: ```js const _ = require('highland'); // Used to generate random...

Would asyncMap be a preferred alternative to a more stream-centric approach? ```cljs _([1, 2, 3]) .flatMap(dataINeedToPropagate => _(promise(1000)) .map(promiseResult => ({promiseResult, dataINeedToPropagate })) ) .each(({ promiseResult, dataINeedToPropagate }) => console.log(...