Асинхронные методы
Синтаксис и Примеры
async void display_jpeg(string fnam) {
// Load JPEG in a background thread and display it when loaded
[...]
} async int fetch_webpage(string url, out string text) throws IOError {
// Fetch a webpage asynchronously and when ready return the
// HTTP status code and put the page contents in 'text'
[...]
text = result;
return status;
}Last updated
Was this helpful?