https://github.com/juanchinovas/nativescript-native-object-pool
This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)
https://github.com/juanchinovas/nativescript-native-object-pool
android ios nativescript nativescript-plugin object-pool
Last synced: about 2 months ago
JSON representation
This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)
- Host: GitHub
- URL: https://github.com/juanchinovas/nativescript-native-object-pool
- Owner: juanchinovas
- License: apache-2.0
- Created: 2020-03-15T23:13:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-08T22:27:18.000Z (over 4 years ago)
- Last Synced: 2024-02-22T23:21:06.867Z (about 1 year ago)
- Topics: android, ios, nativescript, nativescript-plugin, object-pool
- Language: JavaScript
- Homepage:
- Size: 3.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nativescript-native-object-pool  & 
This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)
## Installation
Copy and paste the code below to add this plugin into your app:
```javascript
tns plugin add nativescript-native-object-pool
```## Usage
All methods are statics. Just copy the import statament below and invoke the desire method.
```typescript
import { NativeObjectPool } from "nativescript-native-object-pool";
```## API
```typescript
class NativeObjectPool {
static add(key: string, value: any): boolean;
static get(key: string): any;
static remove(key: string): boolean;
static removeAll(): void;
}
```
## LicenseApache License Version 2.0, January 2004