How to use the di.js/build/di.es5.then function in di

To help you get started, we’ve selected a few di examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github malankajs / malanka / example / lib / Router.js View on Github external
router.use(event => {
            return then(di('env'), env => {
                return then(session(event.name, {env}), page => {
                    event.page = page;
                });
            });
        });