fix memos during suspense

This commit is contained in:
Evan Almloff committed 2024-03-07 11:49:51 -06:00
1 parent da4d9c70e8
commit 3d7f419636
6 files changed
+71 -17

No files matched your search

+2 -2
View File
@@ -53,7 +53,7 @@ async fn running_async() {
#[tokio::test]
async fn yield_now_works() {
thread_local! {
static SEQUENCE: std::cell::RefCell<Vec<usize>> = std::cell::RefCell::new(Vec::new());
static SEQUENCE: std::cell::RefCell<Vec<usize>> = const { std::cell::RefCell::new(Vec::new()) };
}
fn app() -> Element {
@@ -88,7 +88,7 @@ async fn yield_now_works() {
#[tokio::test]
async fn flushing() {
thread_local! {
static SEQUENCE: std::cell::RefCell<Vec<usize>> = std::cell::RefCell::new(Vec::new());
static SEQUENCE: std::cell::RefCell<Vec<usize>> = const { std::cell::RefCell::new(Vec::new()) };
static BROADCAST: (tokio::sync::broadcast::Sender<()>, tokio::sync::broadcast::Receiver<()>) = tokio::sync::broadcast::channel(1);
}