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
FROM mhart/alpine-node:12.13.0 | |
ENV APP /app/api | |
RUN mkdir -p $APP | |
WORKDIR $APP | |
EXPOSE 3333 |
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
--require test/suite | |
--reporter spec | |
--ui bdd | |
--recursive |
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
use atomic_take::AtomicTake; | |
use flume::{self, Receiver, Sender}; | |
use futures::StreamExt; | |
use futures_batch::ChunksTimeoutStreamExt; | |
use std::{collections::HashMap, hash::Hash}; | |
use std::{sync::Arc, time::Duration}; | |
use tokio::sync::oneshot; | |
pub trait Key: Send + Hash + Ord + Eq + Clone + 'static {} | |
impl<T: Send + Hash + Ord + Eq + Clone + 'static> Key for T {} |
OlderNewer