Skip to content

BufferByCountAndTime impact to Async.StartWithContinuations #65

Closed
@vaspas

Description

@vaspas

Description

Async.StartWithContinuations call is blocked when using AsyncSeq.BufferByCountAndTime in async operation.

Repro steps

let op =
asyncSeq{
while true do
do! Async.Sleep 1000
yield 0
}
|> AsyncSeq.bufferByCountAndTime 10 1000
|> AsyncSeq.iter (printf "%A ")

let cts = new System.Threading.CancellationTokenSource()
Async.StartWithContinuations(op, ignore, ignore, ignore, cts.Token)

Expected behavior

Async.StartWithContinuations call is returned

Actual behavior

Async.StartWithContinuations call blocks thread.

Known workarounds

Related information

  • Windows 10
  • FSharp.Control.AsyncSeq (2.0.11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions