This file contains 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
const express = require('express') | |
const SamlStrategy = require('passport-saml').Strategy | |
const passport = require('passport') | |
const cookieSession = require('cookie-session') | |
const cookieParser = require('cookie-parser') | |
// Create express instance | |
const app = express() |
This file contains 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 | |
from rethinkdb import r, RqlRuntimeError | |
from channels import Group | |
r.set_loop_type('asyncio') # RethinkDB's driver must use asyncio for the loop type. | |
def create_changefeed_monitor(feeds): | |
""" | |
Creates a new asyncio event loop and starts the parallel execution of attach_changefeed |