Skip to content

Problem with the create* API of synchronization primitives #75

@planetis-m

Description

@planetis-m

The following code gives the error message: Error: '=sink' is not available for type <Semaphore>; routine: main

const
  N = 2

var
  arrived: array[N, Semaphore]

proc main =
  for i in 0 ..< N:
    arrived[i] = createSemaphore()
main()

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