mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
Use async at places, use &self instead of self: &Self (#3594)
This commit is contained in:
parent
70b1be6ff4
commit
9f6bab6010
14 changed files with 160 additions and 197 deletions
|
@ -157,7 +157,7 @@ impl Worker {
|
|||
///
|
||||
/// This method blocks current thread.
|
||||
pub fn post_message(
|
||||
self: &Self,
|
||||
&self,
|
||||
buf: Buf,
|
||||
) -> impl Future<Output = Result<(), ErrBox>> {
|
||||
let channels = self.external_channels.lock().unwrap();
|
||||
|
@ -170,7 +170,7 @@ impl Worker {
|
|||
}
|
||||
|
||||
/// Get message from worker as a host.
|
||||
pub fn get_message(self: &Self) -> WorkerReceiver {
|
||||
pub fn get_message(&self) -> WorkerReceiver {
|
||||
WorkerReceiver {
|
||||
channels: self.external_channels.clone(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue