|
|
|
|
|
by rcme
1243 days ago
|
|
If you don’t await, how do you get the result? Go returns the result even if you pass in context.Background(). Another subtle difference is that most functions take a context in Go. AFAIK, most functions in Rust are synchronous functions. Also, changing an immutable reference to a mutable one in can land you in a world of hurt in Rust. |
|
I'm fairly certain that most functions in Go don't take a context. There are tons of helper functions like those in the fmt or strings package that don't, for instance.