Module Lwt_switch

module Lwt_switch : sig..end

Lwt switches


Switch has two goals:

  • being able to free multiple resources at the same time,
  • offer a better alternative than always returning an id to free some resource.

For example, consider the following interface:

type id

      val free : id