2 ms·
Coming from working with node.js, this feels very strange. How do I call a callback in the else case? It looks nice and all, but I don't see a way to make thi
by thedufer 13y ago
Coming from working with node.js, this feels very strange. How do I call a callback in the else case? It looks nice and all, but I don't see a way to make this work if db calls are asynchronous.
Any ideas?
- anonymoushn 13y agoPass two callbacks, or make your callback begin with if(err). Which looks suspiciously like a null check.