wip: more cleanup in scheduler

This commit is contained in:
Jonathan Kelley 2021-08-27 09:56:49 -04:00
parent 31702dbf87
commit 9f99f46cfd

View file

@ -68,32 +68,23 @@ do anything too arduous from onInput.
For the rest, we defer to the rIC period and work down each queue from high to low. For the rest, we defer to the rIC period and work down each queue from high to low.
*/ */
use std::cell::{Cell, RefCell, RefMut};
use std::fmt::Display;
use std::intrinsics::transmute;
use std::{cell::UnsafeCell, rc::Rc};
use crate::heuristics::*; use crate::heuristics::*;
use crate::innerlude::*; use crate::innerlude::*;
use futures_channel::mpsc::{UnboundedReceiver, UnboundedSender}; use futures_channel::mpsc::{UnboundedReceiver, UnboundedSender};
use futures_util::stream::FuturesUnordered; use futures_util::stream::FuturesUnordered;
use futures_util::{future::FusedFuture, pin_mut, Future, FutureExt, StreamExt};
use fxhash::{FxHashMap, FxHashSet}; use fxhash::{FxHashMap, FxHashSet};
use indexmap::IndexSet; use indexmap::IndexSet;
use slab::Slab; use slab::Slab;
use smallvec::SmallVec; use smallvec::SmallVec;
use std::{
use std::any::Any; any::{Any, TypeId},
cell::{Cell, RefCell, RefMut, UnsafeCell},
use std::any::TypeId; collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, VecDeque},
use std::cell::Ref; fmt::Display,
use std::collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, VecDeque}; pin::Pin,
use std::pin::Pin; rc::Rc,
};
use futures_util::future::FusedFuture;
use futures_util::pin_mut;
use futures_util::Future;
use futures_util::FutureExt;
use futures_util::StreamExt;
#[derive(Clone)] #[derive(Clone)]
pub struct EventChannel { pub struct EventChannel {