Last active
August 18, 2021 04:49
-
-
Save daneshk/050997582bbe0ce630a635a22a510787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RouteGuideClient ep = check new ("http://localhost:8980"); | |
// Server streaming | |
Rectangle rectangle = { | |
lo: {latitude: 400000000, longitude: -750000000}, | |
hi: {latitude: 420000000, longitude: -730000000} | |
}; | |
stream<Feature, grpc:Error?> features = check ep->ListFeatures(rectangle); | |
error? e = features.forEach(function(Feature f) { | |
io:println(`Result: lat=${f.location.latitude}, lon=${f.location.longitude}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment