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
### Keybase proof | |
I hereby claim: | |
* I am apatrushev on github. | |
* I am apatrushev (https://keybase.io/apatrushev) on keybase. | |
* I have a public key ASDk0Vu7jZ9Oxm2Bs0DIUO9-Dr3iLsMSxwCSPzM02YOsSAo | |
To claim this, I am signing this object: |
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
extern crate actix; | |
extern crate tokio; | |
extern crate tokio_codec; | |
extern crate futures; | |
extern crate bytes; | |
use bytes::BytesMut; | |
use std::io; | |
use std::net::SocketAddr; | |
use futures::{Stream, Sink, Future}; |
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
extern crate actix; | |
extern crate tokio_core; | |
extern crate futures; | |
use std::time::Duration; | |
use futures::Stream; | |
use tokio_core::reactor::Interval; | |
use actix::prelude::*; | |
use actix::{Actor, Context, StreamHandler, SpawnHandle, Arbiter}; | |
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 time | |
import threading | |
import asyncio | |
import janus | |
class BackgroundLoopBase(threading.Thread): | |
def __init__(self, *args, **kwargs): | |
if len(args) > 1 or 'target' in kwargs: | |
raise RuntimeError('target override not supported') |
OlderNewer