/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/fsharp/Resolution.fs
19 строк
468 B
Genevieve Warren
Add remarks for core types (#38970)
05 янв 2024, 22:14
Не верифицирован
05 янв 2024, 22:14
71d1377
Код
Авторство
О чём код?
module Resolution open System let demonstrateResolution () = // <Snippet1> let mutable output = "" for i = 0 to 20 do output <- output + $"{DateTime.Now.Millisecond}\n" // Introduce a delay loop. for _ = 0 to 1000 do () if i = 10 then output <- output + "Thread.Sleep called...\n" System.Threading.Thread.Sleep 5 printfn $"{output}" // Press "Run" to see the output. // </Snippet1>