funcool 2023-06-25

I want this to return empty when the channel is empty. without a timeout this call get stuck. is adding a timeout the proper way to do this or is there a different way?

(if-let [v (sp/take! channel)]
  v
  "empty")

it doesn't feel right

is sp/poll! the right function to use?

nevermind I was doing something wrong