Comments (5)
from fsharp.control.asyncseq.
Hey, following up on this. It looks like the issue is the printf
inside iter
. This causes blocking even without bufferByTimeAndCount
. If you instead call printfn
then it works. If printfn
is expanded it looks like this:
Printf.kfprintf (fun _ -> Console.Out.WriteLine()) Console.Out "%A" x
and printf
is the same except the call to Console.Out.WriteLine()
. So somehow, that calls unblocks the thread. If you instead call iterAsync and prepend with a call to do! Async.SwitchToThreadPool ()
then the thread is unblocked, however the still no printing.
Odd.
from fsharp.control.asyncseq.
Hello.
I have added waiting in example above.
Async.StartWithContinuations is returned then AsyncSeq.bufferByCountAndTime is excluded from pipeline.
from fsharp.control.asyncseq.
To clarify my comment, things work as expected if you use printfn
rather than printf
..
from fsharp.control.asyncseq.
Only iterAsync with do! Async.SwitchToThreadPool () works for me.
printfn has the same blocking effect
from fsharp.control.asyncseq.
Related Issues (20)
- 3.x fails with fable HOT 6
- Best way to convert System.Collections.Generic.IAsyncEnumerable<'t> to AsyncSeq<'t>? HOT 6
- iterAsyncParallel and iterAsyncParallelThrottled may fail to cancel
- Add YieldFrom overload for seq<'a>? HOT 1
- Support .NET Standard 2.0 HOT 6
- Combination of groupBy and mapAsync involving access to the group causes deadlock. HOT 2
- [Feature] Can we have sort, sortBy, sortDescending and sortByDescending methods for AsyncSeq? HOT 3
- Update to use github actions
- netstandard2.1 only target forbids using the library in .net framework HOT 3
- asyncSeq not available HOT 6
- Currently broken with Fable HOT 7
- TaskSeq? HOT 6
- AsyncSeq deadlocks in Blazor WASM environment HOT 2
- AsyncSeq.mapAsyncParallel alternatives HOT 3
- Suggest to add a `chunkBy` function (to group and yield adjacent items sharing the same key) to the library HOT 4
- [General Question] HOT 2
- Deprecate `FSharp.Control.IAsyncEnumerable` in favor of the same type in BCL
- [Question] AsyncSeq.MapAsyncParallel HOT 2
- [Question] How to reduce Async<unit[]> HOT 1
- making AsyncSeq.mergeAll to accept array maybe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.control.asyncseq.