Hello,
I have an implementation for reference
https://github.com/SusanDoggie/Doggie/blob/master/Sources/Doggie/Foundation/Random.swift
It's easy to remind that what's the range of random floating point number
Double.random(includeOne: true)
Double.random(includeOne: false)
2017-09-09 0:52 GMT+0
Not really certain what async/await adds, using this library (note self
promotion) which is built on top of GCD:
https://github.com/hlovatt/Concurrency-Utilities
You can write:
func doit() {
AsynchronousFuture { // Executes in background and therefore does
not block main
First off, I’m still catching up with all those (very welcome :-) threads about
concurrency, so bear with me if I’m commenting on topics that have been settled
in the meantime.
> Am 18.08.2017 um 17:13 schrieb Johannes Weiß via swift-evolution
> :
>
> Hi Chris & swift-evo,
>
> (Given the alr
> Am 21.08.2017 um 22:09 schrieb Karim Nassar via swift-evolution
> :
>
> Thought about it in more depth, and I’m now firmly in the camp of:
> ‘throws’/‘try' and ‘async’/‘await' should be orthogonal features. I think the
> slight call-site reduction in typed characters ('try await’ vs ‘await’)