Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
com.unityfx.async
Advanced tools
UnityFx.Async introduces effective and portable asynchronous operations that can be used very much like Tasks in .NET and Promises in JS.
Requires Unity 2018.3 or higher.
Lightweight Task-like asynchronous operations (promises) for Unity3d.
Library is designed as a lightweight Unity3d-compatible Tasks alternative. Main design goals are:
net35
-compilance, extensions of Unity asynchronous operations etc.The table below summarizes differences berween UnityFx.Async and other popular asynchronous operation frameworks:
Stat | UnityFx.Async | C-Sharp-Promise | TPL |
---|---|---|---|
Thread-safe | ✔️ | - | ✔️ |
.NET 3.5 compilance | ✔️ | ✔️ | - |
Supports SynchronizationContext capturing | ✔️ | - | ✔️ |
Supports continuations | ✔️ | ✔️ | ✔️ |
Supports Unity coroutines | ️✔️ | - | - |
Supports async / await | ✔️ | - | ✔️ |
Supports promise-like continuations | ✔️ | ✔️ | - |
Supports cancellation | ✔️ | - | ✔️ |
Supports progress reporting | ✔️ | ✔️ | ✔️ |
Supports child operations | - | - | ✔️ |
Supports Task-like types (requires C# 7.2) | ✔️ | - | ✔️ |
Supports ExecutionContext flow | - | - | ✔️ |
Minimum allocations per continuation | ~1 | 5+ | 2+ |
NOTE: As the table states ExecutionContext flow is NOT supported. Please use Tasks if you need it.
Npm package is available at npmjs.com. To use it, add the following line to dependencies section of your manifest.json
. Unity should download and link the package automatically:
{
"scopedRegistries": [
{
"name": "Arvtesh",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.unityfx"
]
}
],
"dependencies": {
"com.unityfx.async": "1.1.0"
}
}
[1.1.0] - unleleased
Promise
helper class with promise-specific helpers.ThenSequence
extensions.Done
promise extensions.LoadSceneAsync
extension method for AssetBundle
.AsyncUtility.LoadSceneAsync
helper.npm
support.FAQs
UnityFx.Async introduces effective and portable asynchronous operations that can be used very much like Tasks in .NET and Promises in JS.
The npm package com.unityfx.async receives a total of 914 weekly downloads. As such, com.unityfx.async popularity was classified as not popular.
We found that com.unityfx.async demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.