mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make Task require Send
This commit is contained in:
parent
8000efac75
commit
f088b708c9
10 changed files with 25 additions and 21 deletions
|
@ -22,7 +22,7 @@ impl TaskSource for NetworkingTaskSource {
|
|||
canceller: &TaskCanceller,
|
||||
) -> Result<(), ()>
|
||||
where
|
||||
T: Send + Task + 'static,
|
||||
T: Task + 'static,
|
||||
{
|
||||
self.0.send(CommonScriptMsg::Task(
|
||||
ScriptThreadEventCategory::NetworkEvent,
|
||||
|
@ -36,7 +36,7 @@ impl NetworkingTaskSource {
|
|||
/// global scope gets destroyed.
|
||||
pub fn queue_unconditionally<T>(&self, msg: Box<T>) -> Result<(), ()>
|
||||
where
|
||||
T: Task + Send + 'static,
|
||||
T: Task + 'static,
|
||||
{
|
||||
self.0.send(CommonScriptMsg::Task(ScriptThreadEventCategory::NetworkEvent, msg))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue