BLMOVEM

Since 1.1.0Lists

Syntax

BLMOVEM source destination LEFT|RIGHT LEFT|RIGHT timeout [<COUNT count | EXACTLY count> <OBO | BULK>]
  • Flags: blocking, write
  • ACL categories: @blocking, @list, @slow, @write
  • Arity: -2

LMOVEM that waits until source has an element, or, with EXACTLY, enough of them, or until timeout seconds have passed.

Reply

  • An array of the elements moved.
  • nil if the timeout passed.

Examples

> BLMOVEM empty dst LEFT RIGHT 0.1
(nil)