1766 in Norway
| |||||
Centuries: |
| ||||
---|---|---|---|---|---|
Decades: |
| ||||
See also: | 1766 in Denmark List of years in Norway |
Events in the year 1766 in Norway.
Incumbents
- Monarch: Frederick V (until 14 January); then Christian VII
Events
- 4 April - Schack Carl Rantzau was appointed commander-in-chief of the Norwegian army.
- 4 July - Charles of Hesse was appointed Steward of Norway.
Arts and literature
Births
- 6 September - Jens Johan Vangensten, politician (died 1837)
Full date unknown
- Ole Olsen Evenstad, politician (died 1833)
- Carsten Tank, politician (died 1832)
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.