This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ----------------------------------------------------- | |
| // projects.service.js | |
| // ----------------------------------------------------- | |
| // Initializes the `projects` service on path `/projects` | |
| const createService = require('feathers-sequelize'); | |
| const createModel = require('../../models/projects.model'); | |
| const hooks = require('./projects.hooks'); | |
| module.exports = function (app) { | |
| const Model = createModel(app); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| loop = asyncio.get_event_loop() | |
| async def hello(): | |
| await asyncio.sleep(3) | |
| print('Hello!') | |
| if __name__ == '__main__': | |
| loop.run_until_complete(hello()) | |
OlderNewer