4 ms·
This is actually similar to how it's done in Go Imagine you define a function: func hello(value string) { // compute heavy stuff } To run it sync
by apatheticonion 7y ago
This is actually similar to how it's done in Go
Imagine you define a function:
func hello(value string) {
// compute heavy stuff
}
To run it sync
hello("World")
To run it async, just add 'go'
go hello("World")
IMO when it has generics, it'll be the best language I have worked with.