select
    :: Location
       -- ^ Should actor be executed on local node or on remote one
    -> Res
       -- ^ How many nodes allocate to actor. Local node is not
       --   counted here.
    -> DNA Resources
select loc n = do
    sendACP $ ReqResources loc n
    liftP expect

-- | Allocate N nodes for group of actors. Each will have only single
--   node
select
    :: Location
       -- ^ Should actor be executed on local node or on remote one
    -> Res
       -- ^ How many nodes allocate to actor. Local node is not
       --   counted here.
    -> DNA Resources
select loc n = do
    sendACP $ ReqResources loc n
    liftP expect

-- | Allocate N nodes for group of actors. Each will have only single
--   node
select loc n = do
    sendACP $ ReqResources loc n
    liftP expect

-- | Allocate N nodes for group of actors. Each will have only single
--   node