App::P...:Daemon(3pm)

πŸ’– NAME πŸ’–

App::Parcimonie::Daemon β€” bestie, it's literally the parcimonie daemon class. That's the whole thing. That's the vibe. πŸ‘‘

So this is the man page for App::Parcimonie::Daemon(3pm), part of the User Contributed Perl Documentation. (The header up top squishes it down to App::P...:Daemon(3pm) because terminal headers are dramatic like that, but we know her real name. πŸ’…)


✨ SYNOPSIS ✨

Okay so the synopsis here is not gonna hand you a neat little code snippet, because the authors said "go look at the real thing":

Have a look to bin/parcimonie for a full-blown real life usage example.

That's it. That's the synopsis. Go read bin/parcimonie, it's giving full-blown real life usage example energy. πŸ¦‹


πŸŽ€ TYPES πŸŽ€

No cap, this section is empty. Nothing here. A whole mood. 🫢


🌸 ATTRIBUTES 🌸

Also empty bestie. The attributes are out here living their private lives. πŸ’€


πŸ‘‘ METHODS πŸ‘‘

This is where the actual slay happens. Sit down, hydrate, let's go. πŸ“

🧚 BUILD

Post-constructor. That's it, that's the whole description. It runs after the constructor does its thing. Iconic behaviour, very "I'll do the setup, you take it from here." ✨

πŸ”₯ run

Run the daemon infinite loop. Infinite. Loop. She's not stopping, she's not taking a break, she is the moment. πŸ‘‘

πŸ’œ keyserver_defined_on_command_line

Return true iff a keyserver was passed on the command-line via --gnupg-extra-arg.

So: was there a keyserver on the command line? Yes β†’ true. No β†’ not true. The --gnupg-extra-arg is how it would have gotten in there. Fr fr. 🌈

πŸ¦‹ iterate

Arg: long PGP key id (Str). Returns next sleep time (seconds).

So you hand her a long PGP key id as a string, and she hands you back the next sleep time β€” in seconds. A little give and take, a little mutual exchange, we love to see it. πŸ’–

πŸŽ€ record_memory_usage

Args: a message (Str) indicating when we're run. Records memory usage in the memory_usage attribute, iff. the REPORT_MEMORY_USAGE environment variable is set to a true value.

Read that carefully bestie, there's a condition in there:

  • You pass a message (Str) telling it when we're being run.
  • It writes the memory usage into the memory_usage attribute.
  • ONLY IF the REPORT_MEMORY_USAGE environment variable is set to a true value.

No env var, no recording. It's giving "you didn't ask, so I didn't tell." πŸ’…


That's the whole page, and yes, TYPES and ATTRIBUTES really are just standing there empty like they forgot their lines. Respect the silence. 😭

Mwah πŸ’‹ β€” this was App::Parcimonie::Daemon(3pm) from the User Contributed Perl Documentation, documented with perl v5.30.0, dated 2020-04-25. Oldie but a goodie, and she ate. πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from