add some comments about the async dataserver async action

This commit is contained in:
UbitUmarov
2020-08-15 03:14:06 +01:00
parent a7e8edf104
commit 657b781f2f
2 changed files with 10 additions and 1 deletions

View File

@@ -4965,7 +4965,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.PassTouches = false;
}
// THIS IS WRONG, must be async
public LSL_Key llRequestAgentData(string id, int data)
{
m_host.AddScriptLPS(1);

View File

@@ -82,6 +82,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
public Action<string> action;
}
// action, if provided, is executed async
// its code pattern should be:
//Action<string> act = eventID =>
//{
// need operations to get reply string
// m_AsyncCommands.DataserverPlugin.DataserverReply(eventID, reply);
//}
// eventID is the event id, provided by this on Invoque
// see ProcessActions below
public UUID RegisterRequest(uint localID, UUID itemID,
string identifier, Action<string> action = null)
{