SwayDB icon indicating copy to clipboard operation
SwayDB copied to clipboard

Remove `IO.Defer`

Open simerplaha opened this issue 4 years ago • 0 comments

Overview

Currently IO.Defer instance is created to execute each request to support all effect types/libraries such as Try, Future, ZIO, Cats-effect, Glass etc.

Issue

IO.Defer is a heap allocation that should be removed.

Task

Replace class IO.Defer which an explicit object BagExecutor that is injected at compile time which provides the implementation on how the request should be executed based on the type of the Bag that can be either Asynchronous/Non-blocking or Synchronous/Blocking

simerplaha avatar Jan 02 '22 04:01 simerplaha