SkillAgentSearch skills...

HAAsyncMutableArray

A subclass of NSMutableArray that allows callers to register blocks to receive the value of an element in the array, even if that element does not exist yet.

Install / Use

/learn @hackarts/HAAsyncMutableArray
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

HAAsyncMutableArray

A subclass of NSMutableArray that allows callers to register blocks to receive the value of an element in the array, even if that element does not exist yet.

This was created to solve a problem I was having with an iOS application that needed to access data in an array that was being populated by an asynchronous process.

Usage

[asyncArray objectAtIndex:0 withBlock:^(id obj) {
  // do something with obj
}];

// somewhere else
[asyncArray addObject:myAwesomeObject]

Author

Brad Greenlee (brad@hackarts.com)

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated1y ago
Forks0

Languages

Objective-C

Security Score

60/100

Audited on Feb 6, 2025

No findings