Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (almost 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 (11 months 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 ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) & ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)
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