1766 in Norway

1766
in
Norway

Centuries:
  • 16th
  • 17th
  • 18th
  • 19th
  • 20th
Decades:
  • 1740s
  • 1750s
  • 1760s
  • 1770s
  • 1780s
See also:1766 in Denmark
List of years in Norway

Events in the year 1766 in Norway.

Incumbents

Events

Arts and literature

Births

Full date unknown

Deaths

gollark: I think I'm missing something then. It says```rusterror[E0373]: async block may outlive the current function, but it borrows `ws`, which is owned by the current function --> src/connection.rs:40:23 |40 | task::spawn(async { | _______________________^41 | | let mut interval = stream::interval(Duration::from_secs(10));42 | | while let Some(_) = interval.next().await {43 | | ws.send_string("Hi".to_string()); | | -- `ws` is borrowed here44 | | }45 | | }); | |_____^ may outlive borrowed value `ws````
gollark: `WebSocketConnection` is not.
gollark: I found `async-scoped`, but it seems like that would either block the entire thread or possibly cause safety issues.
gollark: Hi. I'm trying to concurrently read from a websocket and do some things with that socket at an interval, with `async_std` and `tide-websocket`. I thought I could use `task::spawn` for this, but it seems to want that to only use `'static` things, which the websocket connection is not. What's the right way to do this?
gollark: <@619953832918777856> SECURITY ANNOUNCEMENT: The letter "j" is banned from this point on.

See also

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.