/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/storage/tests/cache_storage.rs
22 строки
826 B
Narfinger
paint: Switch forgotten IpcChannel to GenericChannel (#46985)
04 авг 2026, 20:19
Не верифицирован
04 авг 2026, 20:19
655f052
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use servo_base::generic_channel; use storage::CacheStorageThreadFactory; use storage_traits::cache_storage::{CacheStorageThreadHandle, CacheStorageThreadMessage}; #[test] fn test_exit() { let handle: CacheStorageThreadHandle = CacheStorageThreadFactory::new(None, false); let (sender, receiver) = generic_channel::channel().unwrap(); handle .send(CacheStorageThreadMessage::Exit(sender.into())) .unwrap(); receiver.recv().unwrap(); // Workaround for https://github.com/servo/servo/issues/32912 #[cfg(windows)] std::thread::sleep(std::time::Duration::from_millis(1000)); }