using System; using System.Collections.Generic; namespace OpenSim.Region.Framework.Interfaces { public interface IServiceThrottleModule { /// /// Enqueue a continuation meant to get a resource from elsewhere. /// As usual with CPS, caller beware: if that continuation is a never-ending computation, /// the whole thread will be blocked, and no requests are processed /// /// Category of the resource (e.g. name, region) /// The resource identifier /// The continuation to be executed void Enqueue(string category, string itemid, Action continuation); } }