Exemple #1
0
        private Future <Unit> SendRequest(HttpClient client, string url)
        {
            var future = Future.From(_awaiter, client.GetStringAsync(url));

            return(future.MapR(Execute.OnLastThread, _ =>
            {
                var len = _.Length;
                Interlocked.Add(ref _totalLen, len);
                return Unit.Instance;
            }));
        }