readMapDataInIsolate function

Future<DatastoreReadResult> readMapDataInIsolate(
  1. IsolateParam isolateParam
)

//////////////////////////////////////////////////////////////////////////

This is the execution of reading the mapdata. If called directly the execution is done in the main thread. If called via entryPoint the execution is done in an isolate.

Implementation

///
/// This is the execution of reading the mapdata. If called directly the execution is done in the main thread. If called
/// via [entryPoint] the execution is done in an isolate.
///
Future<DatastoreReadResult> readMapDataInIsolate(IsolateParam isolateParam) async {
  DatastoreReadResult mapReadResult = await isolateParam.mapDataStore.readMapDataSingle(isolateParam.tile);
  return mapReadResult;
}