Latest #task Threads 
How to make Task.async_stream return results as they are ready?
I have the following code:
defmodule Demo do
def run do
child =
...
New
this is my current project structure, the get request has a field that needs external validation
the idea is the endpint dispatch the va...
New
In looking do a simple, but potentially slow task after the response has been delivered to the end user, I am looking for some lifecycle ...
New
I’m starting to get deeper into the subtleties of supervisors and I could use some help understanding how and when to restart failed task...
New
Hello,
I have been playing with a pmap (parallel map) implementation, for a task that seems easy: to run a series of functions in parall...
New
Just wanting to make sure… there are a handful of functions in the Task module that support different arities, e.g. Task.start/1 vs. Task...
New
Hello Elixir community!
I gave a few programming courses in a university a few months ago, and found myself with ~ 250 student projects ...
New
[chat quote=“Myriam2002;2993;2024-05-22T08:49:27Z” channel=“Elixir Chat” channelId=“2” multiQuote=“true” chained=“true”]
hey! I am new t...
New
Hi everyone,
Long time reader, first time poster.
I wrote a nice little script that I think could be useful for people, so I’m sharing ...
New
Forgive an open-ended question, but I’m curious as to what the community thinks are some of the best examples of how concurrency can be h...
New
This Week's Trending
This Month's Trending
This Year's Trending
Last Three Year's Trending
I need to:
do some asynchronous work concurrently
kill the work when the parent GenServer exits
be able to specify the timeout
do some ...
New
Suppose I have the following function:
def foo, do: IO.puts "Foobar"
I want to run it a minute after some work done in my function:
de...
New
I’m trying to name a supervised, permanent task so I can find it easier. What’s the best way to go about this? I tried out this right her...
New
situation:
I have a list of posts, each post is associated with many comments,
I want to process each post in an Oban worker where for ...
New
Hi there,
I have a phoenix controller from which I spawn a Task with Task.Supervisor.start_child for some async processing.
I’d like to...
New
I have a genserver that wants to spawn multiple tasks (in this case multiple api calls to different services) and wait for all of them to...
New
I’m curious why when I use the Enum.map/2 function, parallelizing it with a Task doesn’t make it run faster, but rather makes it run slow...
New
Inside the aliases in mix file. If we define migration command like this:
defp aliases do
[
"ecto.migrate": [
"ecto.migrate da...
New
Forgive an open-ended question, but I’m curious as to what the community thinks are some of the best examples of how concurrency can be h...
New
I have a list of events coming from an event bus let’s assume the form like this:
%ProcucerEvents{
id: 1,
events: [
%Event{id: ...
New
Hello everyone,
I am fairly new to Elixir and so far I’ve had a blast.
As part of an academic assignment I’ve been tasked with implemen...
New
I have a two part question concerning a module like so:
defmodule AsyncAwait do
defp long_running_task(id) do
Process.sleep(5_000)...
New
I’m watching a video on Go Concurrency Patterns. Here Rob Pike is discussing the Replication pattern:
The pattern is to l...
New
I am extending an existing application to allow users to be able to write and send newsletters and struggling with determining a proper s...
New
Hi everyone,
Long time reader, first time poster.
I wrote a nice little script that I think could be useful for people, so I’m sharing ...
New
Trending Over Three Years
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
Hello, I am working on an task, that requires to parse a csv sent from a react frontend. When the backend receives it, it should make an ...
New
I have written a blog post about a common misunderstanding about tasks
Would love your inputs :slight_smile:
New
I am working on a simple introduction talk to OTP. One of the things I myself am wondering about, however, is when Agent is useful and wh...
New
I am kicking off a large number of GenServer calls to actors, each within an async Task.
If one of the GenServer processes dies, I get a...
New
I’m building a postgres-backed job queue for Elixir. The way I have it setup, I have a JobDispatcher that polls the DB every N millisecon...
New
Been reading the Hex docs but it’s still not very clear to me.
I can see this
Task.yield/2 is an alternative to await/2 where the call...
New
Hey all!
Im wondering if anyone have a good example or could help me understand how should I test an async task.
The closer I found was...
New
The more I read about Elixir’s and Erlang’s actor-model-based functionality, the more I am in love.
One thing I am wondering about, is w...
New
I have a simple module that, when invoked, lists all records in a table.
defmodule App.Adapter do
alias App.Repo
def list_all(model...
New
Hi,
I want to handle the following exit example ( String.to_integer(input) is jus an example and can be replaced with raise). This happe...
New
I am writing a channel that receives certain events from mobile applications.
When an event is received, it has to be stored in a data s...
New
I’ve read on GenServer, but am not able yet to use it because not everything yet makes sense to me.
I want this:
when a user clicks on...
New
Background
I have been reading Elixir in Action and I have noticed that in an example, the author decides to forgo Tasks and use pools.
...
New
I’m trying to convert a directory of Markdown files into HTML, and I’m trying to do it concurrently with Task.async_stream. Here is the c...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







