Quenty / Quenty/NevermoreEngine

Add varargs to maid:GiveTask to support adding multiple tasks at once

Open
#139 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
610
Forks
144
Avg merge
1d 20h
Merged PRs (30d)
12

Description

Currently, the procedure to add many items to maid is to do a repeated call to GiveTask, like so:

local a = Instance.new("Part") local b = Instance.new("Part") maid:GiveTask(a) maid:GiveTask(b)

I propose adding varargs support to :GiveTask, so that we can simply do:
local a = Instance.new("Part") local b = Instance.new("Part") maid:GiveTask(a,b)
instead, which is a lot cleaner as it fits in a single line.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the maid module's GiveTask implementation and its existing tests, if present. Check how a single task is registered, then verify that passing multiple tasks in one call registers each task with the same behavior as repeated GiveTask calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
game-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.