Stephan E.G. Veenstraseg.veenstra.dev·Aug 18, 2024Triggering Code on Flutter’s Main Isolate from a WorkManager Background IsolateUse Case: Managing Nutrition in a Game I'm currently developing a game where nutrition plays a vital role. The user has a nutrition level that decreases over time, whether the app is open or not. When the nutrition level drops too low, I want to noti...50 readsDart
Peter Gichiapetergichia.hashnode.dev·Feb 15, 2024Coroutines Exceptions Handling: A Guide to SupervisorScope, SupervisorJob, and CoroutineExceptionHandler.If you are a seasoned Android developer with Kotlin then you have worked and will continue to use Coroutines for asynchronous and multithreading operations since they are lightweight, easy to use, and, most importantly, constantly under maintenance t...coroutines
Anjanesh Lekshminarayananalpinejs.in·Nov 22, 2023Using AJAX to load an image in the backgroundEver tried loading an image using AJAX/fetch? Here's a super simple example with AlpineJS parsing an IMG's src value as JavaScript. It can't get simpler than this. <div x-data="{}"> <img :src="await(await fetch('https://domain.com/myImage.jpg'))....389 readsAjax
Kelechi Amoskellyncodes.hashnode.dev·Sep 6, 2023How to implement web worker/background tasks in your Angular Application to perform long-running tasksTable of Contents Introduction What are Web Workers? Why Use Web Workers in Angular? Prerequisites Basic knowledge of Angular Setting up an Angular project Getting Started with Web Workers Creating a Basic Web Worker Communicating with a...9 likes·28 readsAngular
Abhishek EdlaforDashwave for Mobile Devsdevblogs.dashwave.io·Jul 17, 2023Getting Started with JobScheduler in AndroidJobScheduler is a powerful Android component that manages the execution of background tasks, ensuring optimal system performance. It's a tool that allows developers to schedule tasks or jobs that need to be run under specific conditions. For example,...886 readsAndroid
Al-Mooradialmooradi.hashnode.dev·Mar 16, 2023Linux: SupervisorWhat is a "Supervisor"? "Supervisor" is a process manager which provides a singular interface for managing and monitoring several long-running programs. Run a PHP command using Supervisor To run a PHP command using Linux Supervisor, you must follow t...29 readsLinux