mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
task -> thread
This commit is contained in:
parent
f00532bab0
commit
1f02c4ebbb
119 changed files with 1209 additions and 1207 deletions
13
tests/unit/util/thread.rs
Normal file
13
tests/unit/util/thread.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* 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 http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use util::thread::spawn_named;
|
||||
|
||||
#[test]
|
||||
fn spawn_named_test() {
|
||||
spawn_named("Test".to_owned(), move || {
|
||||
println!("I can run!");
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue