core.async

Provide a chan? function to determine if a given var is a channel

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

When using channels, for example for streaming http bodies, it would be really helpful if there would be a chan? function to check whether a given var is a channel or not.

Aleph already does it like that in it's http-server/client implementation using lamina channels and it feels quite consistent.

It would of course also be more consistent with the rest of clojure to provide a type checking function for basic objects.

Activity

David Rupp made changes -
Field Original Value New Value
Attachment drupp-async-74.diff [ 13110 ]

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated: